Skip to content

Commit

Permalink
Try yet another obscure approach, sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Aug 19, 2024
1 parent 798c147 commit 9d10565
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-electron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ jobs:
if ($INPUT_SIGN) {
npm run dist-win-nsis
} else {
npm run dist-win-nsis-skipsigning
$Env:CSC_IDENTITY_AUTO_DISCOVERY = "false"
npm run dist-win-nsis
$Env:CSC_IDENTITY_AUTO_DISCOVERY = $null
}
echo "Renaming Windows 7+ executable"
$files = @("Kiwix JS Electron", "WikiMed by Kiwix", "Wikivoyage by Kiwix")
Expand Down Expand Up @@ -303,7 +305,9 @@ jobs:
if ($INPUT_SIGN) {
npm run publish
} else {
npm run build-skipsigning
$Env:CSC_IDENTITY_AUTO_DISCOVERY = "false"
npm run build
$Env:CSC_IDENTITY_AUTO_DISCOVERY = $null
}
./scripts/Rewrite-DraftReleaseTag.ps1
- name: Build portable Electron app
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,10 @@
"dist-win": "electron-builder build --win --projectDir dist",
"dist-win-arm64": "electron-builder build --win NSIS:arm64 --projectDir dist",
"dist-win-nsis": "electron-builder build --win NSIS:ia32 --publish never --projectDir dist",
"dist-win-nsis-skipsigning": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder build --win NSIS:ia32 --win.sign=false --publish never --projectDir dist",
"dist-win-nisis-x64": "electron-builder build --win NSIS:x64 --publish never --projectDir dist",
"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",
"build-skipsigning": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder build --projectDir dist --publish never",
"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"
},
Expand Down

0 comments on commit 9d10565

Please sign in to comment.