Files
localsend/scripts/compile_windows_msix_signed.ps1
2023-12-08 03:13:23 +01:00

20 lines
504 B
PowerShell

# UNCOMMENT THESE LINES TO BUILD FROM LATEST COMMIT
# git reset --hard origin/main
# git pull
param(
[Parameter(Mandatory=$true)]
[string]$CERTIFICATE_PASSWORD
)
cd app
fvm flutter clean
fvm flutter pub get
fvm dart run msix:create --certificate-path ../secrets/windows-tienisto.pfx --certificate-password $CERTIFICATE_PASSWORD
Move-Item -Path build/windows/runner/Release/localsend_app.msix -Destination LocalSend-XXX-windows-x86-64.msix
cd ..
Write-Output 'Generated Signed Windows msix!'