diff options
-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! ***************" |