Skip to content

Commit e18c292

Browse files
committed
add Visual C++ Redistributable to windows ARM builds for compatibility
1 parent 7e96bcb commit e18c292

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

build/installer.nsh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
!macro customInstall
2+
${If} ${IsNativeARM64}
3+
DetailPrint "Installing Visual C++ Redistributable for ARM64..."
4+
ExecWait '"$INSTDIR\resources\vc_redist.arm64.exe" /install /quiet /norestart' $0
5+
${If} $0 != 0
6+
DetailPrint "Warning: VC++ Redistributable installation returned code $0"
7+
${Else}
8+
DetailPrint "VC++ Redistributable installed successfully"
9+
${EndIf}
10+
${EndIf}
11+
!macroend

build/vc_redist.arm64.exe

11.2 MB
Binary file not shown.

electron-builder.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ asarUnpack:
1515
extraResources:
1616
- from: drizzle
1717
to: drizzle
18+
- from: build/vc_redist.arm64.exe
19+
to: vc_redist.arm64.exe
20+
filter:
21+
- '**/*'
1822
protocols:
1923
name: solidtime
2024
schemes:
@@ -27,6 +31,7 @@ win:
2731
- x64
2832
- arm64
2933
nsis:
34+
include: build/installer.nsh
3035
artifactName: ${name}-setup-${arch}.${ext}
3136
shortcutName: ${productName}
3237
uninstallDisplayName: ${productName}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "solidtime",
3-
"version": "0.0.58-beta",
3+
"version": "0.0.59-beta",
44
"description": "Desktop App for solidtime - the modern open-source time tracker",
55
"main": "./out/main/index.js",
66
"author": "solidtime.io",

0 commit comments

Comments
 (0)