Add option to build only nsis-web

This commit is contained in:
Jaifroid 2025-05-13 20:44:19 +01:00
parent eed2ea8c4c
commit 4d1e17b467
2 changed files with 15 additions and 1 deletions

View File

@ -29,6 +29,14 @@ on:
- true
- false
default: 'false'
nsisweb:
description: For Windows 11 builds, do you want to build only the nsis-web installer?
type: choice
required: false
options:
- true
- false
default: 'false'
sign:
description: Do you wish to sign the Windows packages?
type: choice
@ -309,12 +317,17 @@ jobs:
# ${{ env.INSTALL_DIR }}/eSignerCKATool.exe load
echo "Building Windows packages..."
if ($INPUT_SIGN) {
npm run publish
if (github.event.inputs.nsisweb -eq 'true') {
npm run publish-nsis-web
} else {
npm run publish
}
} else {
npm run build-skipsigning
}
./scripts/Rewrite-DraftReleaseTag.ps1
- name: Build portable Electron app
if: github.event.inputs.nsisweb != 'true'
run: |
if (-not ($Env:CRON_LAUNCHED -or ($Env:INPUT_TARGET -eq 'nightly'))) {
$GITHUB_TOKEN = $Env:GITHUB_TOKEN

View File

@ -135,6 +135,7 @@
"dist-linux": "electron-builder build --linux --projectDir dist",
"dist-linux-appimage": "electron-builder build --linux AppImage:x64 --projectDir dist",
"publish": "electron-builder build --projectDir dist",
"publish-nsis-web": "electron-builder build --win nsis-web --projectDir dist",
"build-skipsigning": "electron-builder build --config ../scripts/electronBuilder.cjs --publish never --projectDir dist",
"postpackage-win": "(robocopy archives bld\\Electron\\kiwix-js-pwa-win32-ia32\\resources\\app\\archives\\ > null) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0",
"postpackage-linux": "(robocopy archives bld\\Electron\\kiwix-js-pwa-linux-x64\\archives\\ > null) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0"