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

25 lines
1.2 KiB
PowerShell
Raw Normal View History

2024-10-28 18:01:13 +03:00
$version="7.1.1"
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"
2024-02-22 15:17:45 +03:00
signtool.exe sign /sha1 cb7cade8f51d0985d806bcd28e1fec57d3034187 /fd SHA256 /t http://timestamp.digicert.com/scripts/timstamp.dll release/authenticator.exe
signtool.exe sign /sha1 cb7cade8f51d0985d806bcd28e1fec57d3034187 /fd SHA256 /t http://timestamp.digicert.com/scripts/timstamp.dll release/helper/authenticator-helper.exe
2022-06-29 16:28:04 +03:00
echo "Setting env var and building installer"
$env:SRCDIR = ".\release\"
2024-02-22 15:17:45 +03:00
& "$env:WIX\bin\heat.exe" dir .\release -out fragment.wxs -gg -scom -srd -sfrag -dr INSTALLDIR -cg ApplicationFiles -var env.SRCDIR
& "$env:WIX\bin\candle.exe" .\fragment.wxs resources/win/yubioath-desktop.wxs -ext WixUtilExtension -arch x64
& "$env:WIX\bin\light.exe" fragment.wixobj yubioath-desktop.wixobj -ext WixUIExtension -ext WixUtilExtension -o yubico-authenticator-$version-win64.msi
2022-06-29 16:28:04 +03:00
echo "Signing the installer"
2024-02-22 15:17:45 +03:00
signtool.exe sign /sha1 cb7cade8f51d0985d806bcd28e1fec57d3034187 /d "Yubico Authenticator" /fd SHA256 /t http://timestamp.digicert.com/scripts/timstamp.dll yubico-authenticator-$version-win64.msi
2022-06-29 16:28:04 +03:00
2024-02-22 15:17:45 +03:00
echo "All done"