yubioath-flutter/resources/win/release-win.ps1

26 lines
1.0 KiB
PowerShell
Raw Normal View History

2023-09-01 15:51:17 +03:00
$version="6.3.0"
echo "Clean-up of old files"
rm *.msi
rm *.wixobj
rm *.wxs
rm *.wixpdb
2022-06-29 16:28:04 +03:00
echo "Renaming the Actions folder and moving it"
2022-06-30 13:04:24 +03:00
mv yubioath-desktop-* release
2022-06-29 16:28:04 +03:00
echo "Signing the executables"
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
2022-11-11 14:55:00 +03:00
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
2022-06-29 16:28:04 +03:00
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
2022-06-29 16:28:04 +03:00
echo "All done"