diff options
author | Markus Kaiser <mk2092@cam.ac.uk> | 2022-06-29 17:35:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 16:35:16 +0000 |
commit | 1b185d0d6184b9ba03f815fe679245bffe9835b3 (patch) | |
tree | 453b579a65eb28ade2acad82c98a64a0e4941eee | |
parent | 'jsx' files were not being pre-processed for i18n (#395) (diff) | |
download | ferdium-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.yml | 4 | ||||
-rw-r--r-- | scripts/build-windows.ps1 | 8 |
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 | # ----------------------------------------------------------------------------- |
153 | Write-Host "*************** Building app ***************" | 153 | Write-Host "*************** Building app ***************" |
154 | $TARGET_ARCH="x64" | 154 | if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") { |
155 | $TARGET_ARCH="arm64" | ||
156 | } | ||
157 | else | ||
158 | { | ||
159 | $TARGET_ARCH="x64" | ||
160 | } | ||
155 | & $BASE_CMD run build -- --$TARGET_ARCH --dir | 161 | & $BASE_CMD run build -- --$TARGET_ARCH --dir |
156 | 162 | ||
157 | Write-Host "*************** App successfully built! ***************" | 163 | Write-Host "*************** App successfully built! ***************" |