Skip to content

Commit

Permalink
WinPortable: don't error on signing
Browse files Browse the repository at this point in the history
(syncing that part of the package.bat script with master)
  • Loading branch information
cbjeukendrup authored and Jojo-Schmitz committed Dec 29, 2024
1 parent 1f70678 commit fab2fb4
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions build/ci/windows/package.bat
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,19 @@ IF %BUILD_MODE% == stable ( SET PACKAGE_TYPE="msi") ELSE (
GOTO END_ERROR
)))))

SET NEED_SIGN=OFF
IF %PACKAGE_TYPE% == "msi" ( SET NEED_SIGN=ON)
IF %PACKAGE_TYPE% == "portable" ( SET NEED_SIGN=ON)

SET DO_SIGN=OFF
IF %NEED_SIGN% == ON (
IF %PACKAGE_TYPE% == "msi" (
SET DO_SIGN=ON
)
IF %PACKAGE_TYPE% == "portable" (
IF %BUILD_MODE% == testing (
SET DO_SIGN=ON
)
IF %BUILD_MODE% == stable (
SET DO_SIGN=ON
)
)
IF %DO_SIGN% == ON (
IF %SIGN_CERTIFICATE_ENCRYPT_SECRET% == "" (
SET DO_SIGN=OFF
ECHO "warning: not set SIGN_CERTIFICATE_ENCRYPT_SECRET"
Expand Down

0 comments on commit fab2fb4

Please sign in to comment.