mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-09 04:06:27 -04:00
Add option to build only nsis-web
This commit is contained in:
parent
eed2ea8c4c
commit
4d1e17b467
13
.github/workflows/build-electron.yml
vendored
13
.github/workflows/build-electron.yml
vendored
@ -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) {
|
||||
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
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user