aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Markus Kaiser <mk2092@cam.ac.uk>2022-06-29 17:35:16 +0100
committerLibravatar GitHub <noreply@github.com>2022-06-29 16:35:16 +0000
commit1b185d0d6184b9ba03f815fe679245bffe9835b3 (patch)
tree453b579a65eb28ade2acad82c98a64a0e4941eee
parent'jsx' files were not being pre-processed for i18n (#395) (diff)
downloadferdium-app-1b185d0d6184b9ba03f815fe679245bffe9835b3.tar.gz
ferdium-app-1b185d0d6184b9ba03f815fe679245bffe9835b3.tar.zst
ferdium-app-1b185d0d6184b9ba03f815fe679245bffe9835b3.zip
Add NSIS and portable arm64 builds for Windows OS (#217)
-rw-r--r--electron-builder.yml4
-rw-r--r--scripts/build-windows.ps18
2 files changed, 9 insertions, 3 deletions
diff --git a/electron-builder.yml b/electron-builder.yml
index 93c59e52e..f0a26b2d0 100644
--- a/electron-builder.yml
+++ b/electron-builder.yml
@@ -59,11 +59,11 @@ win:
59 icon: ./build-helpers/images/icon.ico 59 icon: ./build-helpers/images/icon.ico
60 target: 60 target:
61 - target: nsis 61 - target: nsis
62 arch: [x64, ia32] 62 arch: [x64, ia32, arm64]
63 - target: msi 63 - target: msi
64 arch: [x64, ia32] 64 arch: [x64, ia32]
65 - target: portable 65 - target: portable
66 arch: [x64, ia32] 66 arch: [x64, ia32, arm64]
67 # The name of the CN appearing in the certificate must be present in the publisherName list below 67 # The name of the CN appearing in the certificate must be present in the publisherName list below
68 publisherName: ["Ferdium Contributors", "Ambroise Grau"] 68 publisherName: ["Ferdium Contributors", "Ambroise Grau"]
69 69
diff --git a/scripts/build-windows.ps1 b/scripts/build-windows.ps1
index 9f770dea1..ee0d67210 100644
--- a/scripts/build-windows.ps1
+++ b/scripts/build-windows.ps1
@@ -151,7 +151,13 @@ Pop-Location
151 151
152# ----------------------------------------------------------------------------- 152# -----------------------------------------------------------------------------
153Write-Host "*************** Building app ***************" 153Write-Host "*************** Building app ***************"
154$TARGET_ARCH="x64" 154if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") {
155 $TARGET_ARCH="arm64"
156}
157else
158{
159 $TARGET_ARCH="x64"
160}
155& $BASE_CMD run build -- --$TARGET_ARCH --dir 161& $BASE_CMD run build -- --$TARGET_ARCH --dir
156 162
157Write-Host "*************** App successfully built! ***************" 163Write-Host "*************** App successfully built! ***************"