Explorar o código

Bug(Bundler): fix target arch in wix (#426)

* fix target arch in wix

* update github action to .amd64.msi
Tensor-Programming %!s(int64=5) %!d(string=hai) anos
pai
achega
76c8376e74

+ 1 - 1
.github/workflows/smoke-tests-source.yml

@@ -42,7 +42,7 @@ jobs:
           - platform: windows-latest
             CARGO_HOME: ~/.cargo
             releaseFolder: target/release
-            ext: .x86.msi
+            ext: .amd64.msi
 
     steps:
       - uses: actions/checkout@v2

+ 2 - 2
cli/tauri-bundler/src/bundle/wix.rs

@@ -170,8 +170,8 @@ fn download_and_verify(url: &str, hash: &str) -> crate::Result<Vec<u8>> {
 
 fn app_installer_dir(settings: &Settings) -> crate::Result<PathBuf> {
   let arch = match settings.binary_arch() {
-    "x86_64" => "x86",
-    "x64" => "x64",
+     "x86" => "i386",
+    "x86_64" => "amd64",
     target => {
       return Err(crate::Error::from(format!(
         "Unsupported architecture: {}",