Browse Source

Switches from win portable to zip

dev
David Benson 2 months ago
parent
commit
d2b655b658
  1. 13
      .github/workflows/electron-builder-win.yml
  2. 9
      electron-builder-win.json
  3. 9
      electron-builder-win32.json

13
.github/workflows/electron-builder-win.yml

@ -69,6 +69,19 @@ jobs:
#Enable auto-update again
yarn run sync
yarn run release-win
- name: Build unpacked Windows x64 (for zip portable)
shell: powershell
run: |
yarn run sync disableUpdate
yarn run electron-builder --win --x64 --dir
- name: Zip unpacked x64 build
shell: powershell
run: |
$version = "${{ github.ref }}" -replace 'refs/tags/v', ''
cd dist
7z a "draw.io-$version-windows.zip" ".\win-unpacked\*"
- name: Build for Windows (APPX)
shell: powershell #The default shell for Windows
run: |

9
electron-builder-win.json

@ -21,12 +21,6 @@
"x64"
]
},
{
"target": "portable",
"arch": [
"x64"
]
},
{
"target": "msi",
"arch": [
@ -48,9 +42,6 @@
"runAfterFinish": false,
"createDesktopShortcut": false
},
"portable": {
"artifactName": "${productName}-${version}-windows-no-installer.${ext}"
},
"afterPack": "build/fuses.cjs",
"fileAssociations": [
{

9
electron-builder-win32.json

@ -20,12 +20,6 @@
"arch": [
"ia32"
]
},
{
"target": "portable",
"arch": [
"ia32"
]
}
]
},
@ -37,9 +31,6 @@
"runAfterFinish": false,
"createDesktopShortcut": false
},
"portable": {
"artifactName": "${productName}-ia32-${version}-windows-32bit-no-installer.${ext}"
},
"afterPack": "build/fuses.cjs",
"fileAssociations": [
{

Loading…
Cancel
Save