mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-02 23:27:00 +03:00
Update macOS and Win release scripts
This commit is contained in:
parent
2d16bf942a
commit
08cdbf9ab3
@ -9,6 +9,8 @@ fi
|
||||
echo "# Extract .app from .tar.gz"
|
||||
tar -xzf yubioath-desktop*.tar.gz
|
||||
|
||||
xattr -d com.apple.quarantine "Yubico Authenticator.app"
|
||||
|
||||
if [ -n "$1" ] && [ -n "$2" ] # Standalone
|
||||
then
|
||||
echo "#################"
|
||||
|
@ -10,16 +10,16 @@ echo "Renaming the Actions folder and moving it"
|
||||
mv yubioath-desktop-* release
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
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
|
||||
& "$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
|
||||
|
||||
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
|
||||
signtool.exe sign /sha1 cb7cade8f51d0985d806bcd28e1fec57d3034187 /d "Yubico Authenticator" /fd SHA256 /t http://timestamp.digicert.com/scripts/timstamp.dll yubico-authenticator-$version-win64.msi
|
||||
|
||||
echo "All done"
|
||||
echo "All done"
|
Loading…
Reference in New Issue
Block a user