mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-03 07:34:10 +03:00
Win: release script
This commit is contained in:
parent
86cf934c73
commit
588fe2e647
1
.github/workflows/windows.yml
vendored
1
.github/workflows/windows.yml
vendored
@ -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
|
||||
|
24
resources/win/release-win.ps1
Normal file
24
resources/win/release-win.ps1
Normal 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"
|
Loading…
Reference in New Issue
Block a user