-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build and sign Windows installer #1702
Conversation
@@ -17,7 +17,7 @@ def parse_version_for_windows_build() -> list[str]: | |||
case last if "dev" in last: | |||
version = msv + last.split("dev") | |||
|
|||
return version | |||
return [segment for segment in version if segment] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes double dot error in version (3.1.0..0
-> 3.1.0.0
).
@@ -0,0 +1,2 @@ | |||
REM DELETE THIS FILE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be deleted for target jobs configuration. Signature verification is now in build_installer.bat
.
REM snowflake_cli.wixobj ^ | ||
REM snowflake_cli_exitdlg.wixobj ^ | ||
REM _internal.wixobj | ||
set PATH=C:\Program Files\7-Zip;C:\Users\jenkins\AppData\Local\Programs\Python\Python38;C:\Users\jenkins\AppData\Local\Programs\Python\Python38\Scripts;C:\Program Files (x86)\WiX Toolset v3.11\bin;%PATH% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost all the code is from @sfc-gh-pczajka branch: https://github.com/snowflakedb/snowflake-cli/tree/SNOW-1661610-sign-Windows-intaller
I changed the following:
- Added
|| goto :error
to crucial commands and addederror
label section at the end of the file. - Added
/d "Snowflake CLI"
option tosigntool sign
to present a proper tool name in UAC dialog. - Added two invocations of
signtool verify
- for snow.exe and for installer. - Removed hardcoded values for
REVISION
andRELEASE_TYPE
variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO:
- review
- cleanup debugs and "echo on"
- upload MSI to a proper path at a stage (without staging part???)
- anything else I don't know about
139bdb7
to
537109c
Compare
Pre-review checklist
Changes description
Based on @sfc-gh-pczajka branch: https://github.com/snowflakedb/snowflake-cli/tree/SNOW-1661610-sign-Windows-intaller
dev
andrc
versions (3.1.0..0
->3.1.0.0
)