Win: release script

This commit is contained in:
Dennis Fokin 2022-06-29 15:28:04 +02:00
parent 86cf934c73
commit 588fe2e647
No known key found for this signature in database
GPG Key ID: 870B88256690D8BC
2 changed files with 25 additions and 0 deletions

View File

@ -70,6 +70,7 @@ jobs:
mkdir $dest
mv build\windows\runner\Release\* $dest\
mv yubioath-desktop.msi deploy
mv resources\win\release-win.ps1 deploy
- name: Upload artifact
uses: actions/upload-artifact@v1

View File

@ -0,0 +1,24 @@
echo "Cloning the Git repo"
git clone git@github.com:Yubico/yubioath-desktop-private.git
echo "Renaming the Actions folder and moving it"
mv yubioath-desktop-main-windows release
mv release yubioath-desktop-private
echo "Signing the executables"
cd yubioath-desktop-private
echo "Sleeping 5s: Change to signing key"
Start-Sleep -s 5
signtool.exe sign /fd SHA256 /t http://timestamp.digicert.com/scripts/timstamp.dll release/authenticator.exe
signtool.exe sign /fd SHA256 /t http://timestamp.digicert.com/scripts/timstamp.dll release/helper/authenticator-helper.exe
echo "Setting env var and building installer"
$env:SRCDIR = ".\release\"
heat dir .\release -out fragment.wxs -gg -scom -srd -sfrag -dr INSTALLDIR -cg ApplicationFiles -var env.SRCDIR
candle .\fragment.wxs .\resources\win\yubioath-desktop.wxs -ext WixUtilExtension -arch x64
light fragment.wixobj yubioath-desktop.wixobj -ext WixUIExtension -ext WixUtilExtension -o yubioath-desktop-VERSION-win64.msi
echo "Signing the installer"
signtool.exe sign /d "Yubico Authenticator" /fd SHA256 /t http://timestamp.digicert.com/scripts/timstamp.dll yubioath-desktop-VERSION-win64.msi
echo "All done"