mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-25 23:14:18 +03:00
Merge PR #160
This commit is contained in:
commit
c0a6bb9577
1
.github/workflows/windows.yml
vendored
1
.github/workflows/windows.yml
vendored
@ -70,6 +70,7 @@ jobs:
|
||||
mkdir $dest
|
||||
mv build\windows\runner\Release\* $dest\
|
||||
mv yubioath-desktop.msi deploy
|
||||
mv resources deploy
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v1
|
||||
|
19
resources/win/release-win.ps1
Normal file
19
resources/win/release-win.ps1
Normal file
@ -0,0 +1,19 @@
|
||||
$version=6.0.0-dev.0
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
echo "All done"
|
@ -131,7 +131,15 @@ def update_helper_version(buf):
|
||||
)
|
||||
return buf
|
||||
|
||||
# release-win.ps1
|
||||
def update_release_win(buf):
|
||||
return sub1(
|
||||
rf'\$version={version_pattern}',
|
||||
f'$version={version}',
|
||||
buf,
|
||||
)
|
||||
|
||||
update_file("pubspec.yaml", update_pubspec)
|
||||
update_file("windows/runner/Runner.rc", update_runner_rc)
|
||||
update_file("helper/version_info.txt", update_helper_version)
|
||||
update_file("helper/version_info.txt", update_helper_version)
|
||||
update_file("resources/win/release-win.ps1", update_release_win)
|
Loading…
Reference in New Issue
Block a user