mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-08 17:39:59 +02:00
Fixed windows signing script for future versions
This commit is contained in:
parent
b49c47516e
commit
aeec7866b4
1 changed files with 8 additions and 8 deletions
|
@ -29,7 +29,7 @@ echo "Downloaded x86_64 artifacts"
|
||||||
|
|
||||||
mkdir engine\obj-x86_64-pc-windows-msvc\ -ErrorAction SilentlyContinue
|
mkdir engine\obj-x86_64-pc-windows-msvc\ -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
npm run surfer -- ci --brand release
|
surfer -- ci --brand release
|
||||||
|
|
||||||
function SignAndPackage($name) {
|
function SignAndPackage($name) {
|
||||||
echo "Executing on $name"
|
echo "Executing on $name"
|
||||||
|
@ -45,7 +45,7 @@ function SignAndPackage($name) {
|
||||||
signtool.exe sign /n "$SignIdentity" /t http://time.certum.pl/ /fd sha256 /v $files
|
signtool.exe sign /n "$SignIdentity" /t http://time.certum.pl/ /fd sha256 /v $files
|
||||||
echo "Packaging $name"
|
echo "Packaging $name"
|
||||||
$env:SURFER_SIGNING_MODE="sign"
|
$env:SURFER_SIGNING_MODE="sign"
|
||||||
$env:MAR="$PWD\\build\\winsign\\mar.exe"
|
$env:MAR="..\\build\\winsign\\mar.exe"
|
||||||
if ($name -eq "arm64") {
|
if ($name -eq "arm64") {
|
||||||
$env:SURFER_COMPAT="aarch64"
|
$env:SURFER_COMPAT="aarch64"
|
||||||
} else {
|
} else {
|
||||||
|
@ -92,12 +92,12 @@ function SignAndPackage($name) {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Extract the zip, sign everything inside, and repackage it
|
# Extract the zip, sign everything inside, and repackage it
|
||||||
Expand-Archive -Path windsign-temp\windows-x64-signed-$name\zen.win-$name.zip -DestinationPath windsign-temp\windows-x64-signed-$name\zen.win-$name
|
#Expand-Archive -Path windsign-temp\windows-x64-signed-$name\zen.win-$name.zip -DestinationPath windsign-temp\windows-x64-signed-$name\zen.win-$name
|
||||||
rm windsign-temp\windows-x64-signed-$name\zen.win-$name.zip
|
#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 *.exe
|
||||||
$files += Get-ChildItem windsign-temp\windows-x64-signed-$name\zen.win-$name -Recurse -Include *.dll
|
#$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
|
#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
|
#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
|
rmdir windsign-temp\windows-x64-signed-$name\zen.win-$name -Recurse -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
# Move the manifest
|
# Move the manifest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue