From 08cdbf9ab38666df34eb9091a2252249aa1cc47b Mon Sep 17 00:00:00 2001 From: Dennis Fokin Date: Thu, 22 Feb 2024 13:17:45 +0100 Subject: [PATCH] Update macOS and Win release scripts --- macos/release-macos.sh | 2 ++ resources/win/release-win.ps1 | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/macos/release-macos.sh b/macos/release-macos.sh index 1e3c6bb5..0f9fce4b 100644 --- a/macos/release-macos.sh +++ b/macos/release-macos.sh @@ -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 "#################" diff --git a/resources/win/release-win.ps1 b/resources/win/release-win.ps1 index 6a21cbec..4ca060c4 100644 --- a/resources/win/release-win.ps1 +++ b/resources/win/release-win.ps1 @@ -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" \ No newline at end of file