* Sign and package windows artifacts

* Refactor sign.ps1: Update artifact download and signing process
This commit is contained in:
mr. m 🤙
2024-10-15 23:24:57 +03:00
committed by GitHub
parent 4486cdc14f
commit e3ef019995
11 changed files with 14 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<updates>
<update type="minor" displayVersion="1.0.1-a.9" appVersion="1.0.1-a.9" platformVersion="131.0.3" buildID="20241014215847">
<patch type="complete" URL="https://github.com/zen-browser/desktop/releases/download/1.0.1-a.9/windows-generic.mar" hashFunction="sha512" hashValue="84772b8f520691027f48ff63f12abe9305a15b447513f16a7cdebaf5e0a3bdf5541ebea012328abea065a1104e2f60176ca3da7d503f293ab784dd1cfd7e65ce" size="72552508"/>
<update type="minor" displayVersion="1.0.1-a.10" appVersion="1.0.1-a.10" platformVersion="131.0.3" buildID="20241015180200">
<patch type="complete" URL="https://github.com/zen-browser/desktop/releases/download/1.0.1-a.10/windows-generic.mar" hashFunction="sha512" hashValue="a2cc7b13d742643c18866ff467a5c37a0d3679ef51ea50de942fd0ba9a6640938a8ddb60630fba017f4468bfcdf8c3cc8a7f2b52dae0c7327a785e3e3a25db18" size="72545880"/>
</update>
</updates>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<updates>
<update type="minor" displayVersion="1.0.1-a.9" appVersion="1.0.1-a.9" platformVersion="131.0.3" buildID="20241014215847">
<patch type="complete" URL="https://github.com/zen-browser/desktop/releases/download/1.0.1-a.9/windows-generic.mar" hashFunction="sha512" hashValue="84772b8f520691027f48ff63f12abe9305a15b447513f16a7cdebaf5e0a3bdf5541ebea012328abea065a1104e2f60176ca3da7d503f293ab784dd1cfd7e65ce" size="72552508"/>
<update type="minor" displayVersion="1.0.1-a.10" appVersion="1.0.1-a.10" platformVersion="131.0.3" buildID="20241015180200">
<patch type="complete" URL="https://github.com/zen-browser/desktop/releases/download/1.0.1-a.10/windows-generic.mar" hashFunction="sha512" hashValue="a2cc7b13d742643c18866ff467a5c37a0d3679ef51ea50de942fd0ba9a6640938a8ddb60630fba017f4468bfcdf8c3cc8a7f2b52dae0c7327a785e3e3a25db18" size="72545880"/>
</update>
</updates>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<updates>
<update type="minor" displayVersion="1.0.1-a.9" appVersion="1.0.1-a.9" platformVersion="131.0.3" buildID="20241014215847">
<patch type="complete" URL="https://github.com/zen-browser/desktop/releases/download/1.0.1-a.9/windows.mar" hashFunction="sha512" hashValue="77d63286a10a28dd85db864d264ee30abb49cd9797252da4bfb7494165551ac8b0acff2b63af70b2c418f12613829eeca8175d5d2925d26e4e2ff6cc93d79f1e" size="72559552"/>
<update type="minor" displayVersion="1.0.1-a.10" appVersion="1.0.1-a.10" platformVersion="131.0.3" buildID="20241015180017">
<patch type="complete" URL="https://github.com/zen-browser/desktop/releases/download/1.0.1-a.10/windows.mar" hashFunction="sha512" hashValue="97baef8a8cc50fc78ce2c4e46bd7b844e7ac2fae63ba670f0daf04bf7f9c1b5ab0b70a660b256331291715264c1df4c97e48b5a0113f06d564af55b0f95c6237" size="72501480"/>
</update>
</updates>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<updates>
<update type="minor" displayVersion="1.0.1-a.9" appVersion="1.0.1-a.9" platformVersion="131.0.3" buildID="20241014215847">
<patch type="complete" URL="https://github.com/zen-browser/desktop/releases/download/1.0.1-a.9/windows.mar" hashFunction="sha512" hashValue="77d63286a10a28dd85db864d264ee30abb49cd9797252da4bfb7494165551ac8b0acff2b63af70b2c418f12613829eeca8175d5d2925d26e4e2ff6cc93d79f1e" size="72559552"/>
<update type="minor" displayVersion="1.0.1-a.10" appVersion="1.0.1-a.10" platformVersion="131.0.3" buildID="20241015180017">
<patch type="complete" URL="https://github.com/zen-browser/desktop/releases/download/1.0.1-a.10/windows.mar" hashFunction="sha512" hashValue="97baef8a8cc50fc78ce2c4e46bd7b844e7ac2fae63ba670f0daf04bf7f9c1b5ab0b70a660b256331291715264c1df4c97e48b5a0113f06d564af55b0f95c6237" size="72501480"/>
</update>
</updates>

View File

@@ -10,8 +10,10 @@ git pull --recurse-submodules
mkdir windsign-temp -ErrorAction SilentlyContinue
# Download in parallel
gh run download $GithubRunId --name windows-x64-obj-specific -p windsign-temp\windows-x64-obj-specific
gh run download $GithubRunId --name windows-x64-obj-generic -p windsign-temp\windows-x64-obj-generic
gh run download $GithubRunId --name windows-x64-obj-specific -D windsign-temp\windows-x64-obj-specific
echo "Downloaded specific artifacts"
gh run download $GithubRunId --name windows-x64-obj-generic -D windsign-temp\windows-x64-obj-generic
echo "Downloaded generic artifacts"
mkdir engine\obj-x86_64-pc-windows-msvc\ -ErrorAction SilentlyContinue
mkdir .\.github\workflows\object\ -ErrorAction SilentlyContinue
@@ -29,7 +31,7 @@ function SignAndPackage($name) {
$files = Get-ChildItem engine\obj-x86_64-pc-windows-msvc\ -Recurse -Include *.exe
$files += Get-ChildItem engine\obj-x86_64-pc-windows-msvc\ -Recurse -Include *.dll
signtool.exe sign /n "$SignIdentity" /t http://time.certum.pl/ /fd sha256 /v $files /ph
signtool.exe sign /n "$SignIdentity" /t http://time.certum.pl/ /fd sha256 /v $files
echo "Packaging $name"
$env:SURFER_SIGNING_MODE="sign"
$env:MAR="$PWD\\build\\winsign\\mar.exe"
@@ -76,7 +78,7 @@ function SignAndPackage($name) {
rm windsign-temp\windows-x64-signed-$name\zen.win-$name.zip
$files = Get-ChildItem windsign-temp\windows-x64-signed-$name\zen.win-$name -Recurse -Include *.exe
$files += Get-ChildItem windsign-temp\windows-x64-signed-$name\zen.win-$name -Recurse -Include *.dll
signtool.exe sign /n "$SignIdentity" /t http://time.certum.pl/ /fd sha256 /v $files /ph
signtool.exe sign /n "$SignIdentity" /t http://time.certum.pl/ /fd sha256 /v $files
Compress-Archive -Path windsign-temp\windows-x64-signed-$name\zen.win-$name -DestinationPath windsign-temp\windows-x64-signed-$name\zen.win-$name.zip
rmdir windsign-temp\windows-x64-signed-$name\zen.win-$name -Recurse -ErrorAction SilentlyContinue