Skip to content

Commit

Permalink
Fix Desktop Build on Linux (#954)
Browse files Browse the repository at this point in the history
WebAssembly needs a specific mime type to be allowed to be loaded. Tauri
by default apparently can't send headers on Linux, unless you activate a
specific feature, so the WebAssembly failed to load. Additionally,
without the dialog feature, it also wasn't able to show the error
message.
  • Loading branch information
CryZe authored Jul 22, 2024
1 parent 891a972 commit a446760
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ edition = "2021"
tauri-build = { version = "1", features = [] }

[dependencies]
tauri = { version = "1", features = [ "http-all"] }
tauri = { version = "1", features = [
"dialog-all",
"http-all",
"linux-protocol-headers",
] }
serde = { version = "1" }
serde_derive = { version = "1" }
serde_json = "1"
Expand Down
7 changes: 6 additions & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@
"tauri": {
"allowlist": {
"all": false,
"dialog": {
"all": true
},
"http": {
"all": true,
"request": true,
"scope": ["https://www.speedrun.com/static/*"]
"scope": [
"https://www.speedrun.com/static/*"
]
}
},
"windows": [
Expand Down

0 comments on commit a446760

Please sign in to comment.