2023-01-23 10:23:14 +03:00
|
|
|
$version="6.1.0"
|
2022-06-30 12:20:57 +03:00
|
|
|
|
2022-11-30 15:15:32 +03:00
|
|
|
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
|
2022-06-30 12:20:57 +03:00
|
|
|
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"
|
2022-06-30 12:20:57 +03:00
|
|
|
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"
|