Skip to content

Commit

Permalink
fix: arm64 nsis won’t build without x64 set
Browse files Browse the repository at this point in the history
  • Loading branch information
gnattu committed Dec 20, 2020
1 parent 7633529 commit db754b9
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion patches/app-builder-lib+22.10.3.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
diff --git a/node_modules/app-builder-lib/.DS_Store b/node_modules/app-builder-lib/.DS_Store
new file mode 100644
index 0000000..f9b3028
index 0000000..32261d4
Binary files /dev/null and b/node_modules/app-builder-lib/.DS_Store differ
diff --git a/node_modules/app-builder-lib/electron-osx-sign/util.js b/node_modules/app-builder-lib/electron-osx-sign/util.js
index 107d8aa..4ea91f8 100644
Expand Down Expand Up @@ -31,3 +31,23 @@ index 107d8aa..4ea91f8 100644
}
} else if (stat.isDirectory() && !stat.isSymbolicLink()) {
const result = await _walkAsync(filePath)
diff --git a/node_modules/app-builder-lib/templates/.DS_Store b/node_modules/app-builder-lib/templates/.DS_Store
new file mode 100644
index 0000000..a0d7491
Binary files /dev/null and b/node_modules/app-builder-lib/templates/.DS_Store differ
diff --git a/node_modules/app-builder-lib/templates/nsis/include/extractAppPackage.nsh b/node_modules/app-builder-lib/templates/nsis/include/extractAppPackage.nsh
index 886bebc..b35dc40 100644
--- a/node_modules/app-builder-lib/templates/nsis/include/extractAppPackage.nsh
+++ b/node_modules/app-builder-lib/templates/nsis/include/extractAppPackage.nsh
@@ -13,6 +13,11 @@
!endif

!insertmacro compute_files_for_current_arch
+
+ !else ifdef APP_ARM64
+ StrCpy $packageArch "ARM64"
+ !insertmacro arm64_app_files
+
!else
!insertmacro ia32_app_files
!endif

0 comments on commit db754b9

Please sign in to comment.