diff --git a/bin/prepare_assets.sh b/bin/prepare_assets.sh index dcfa550..b688b0b 100755 --- a/bin/prepare_assets.sh +++ b/bin/prepare_assets.sh @@ -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 diff --git a/electron-builder.json b/electron-builder.json index e97c960..35cd2b0 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -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" @@ -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": { diff --git a/package.json b/package.json index a3ba632..acead65 100644 --- a/package.json +++ b/package.json @@ -79,4 +79,4 @@ "vite-plugin-native": "^2.2.1" }, "main": "dist-electron/main.js" -} +} \ No newline at end of file