Skip to content

Commit

Permalink
Build target nsis
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhamlett committed Oct 17, 2024
1 parent 19e6baa commit 4f2e71f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
3 changes: 0 additions & 3 deletions bin/prepare_assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ if [ "$(which zip)" = "" ]; then
apt-get update && apt-get install -y zip
fi

mv ./release/wakatime-windows-x64.exe ./release/wakatime-win32-x64.exe
mv ./release/wakatime-windows-arm64.exe ./release/wakatime-win32-arm64.exe

# add execution permission
chmod 750 ./release/wakatime-linux-x86_64.AppImage
chmod 750 ./release/wakatime-linux-arm64.AppImage
Expand Down
15 changes: 11 additions & 4 deletions electron-builder.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
"appId": "com.WakaTime.WakaTime",
"asar": true,
"publish": null,
"publish": [
{
"provider": "github",
"owner": "wakatime",
"repo": "desktop-wakatime",
"releaseType": "release"
}
],
"productName": "WakaTime",
"directories": {
"output": "release"
Expand All @@ -15,20 +21,21 @@
"win": {
"target": [
{
"target": "squirrel",
"target": "nsis",
"arch": [
"x64",
"arm64"
]
}
],
"artifactName": "wakatime-windows-${arch}.${ext}",
"artifactName": "wakatime-win32-${arch}.${ext}",
"icon": "./public/app-icon.ico"
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"createStartMenuShortcut": true,
"deleteAppDataOnUninstall": false
},
"linux": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@
"vite-plugin-native": "^2.2.1"
},
"main": "dist-electron/main.js"
}
}

0 comments on commit 4f2e71f

Please sign in to comment.