chore: update scripts

This commit is contained in:
Tien Do Nam
2023-06-04 16:52:41 +02:00
parent 3fc51a6a28
commit 0e282a4d2c
3 changed files with 24 additions and 8 deletions
+1 -4
View File
@@ -8,10 +8,7 @@
*.gen.dart
*.freezed.dart
/private_key.pepk
/upload-keystore.jks
/tienisto.pfx
/scripts/compile_windows_msix_signed.ps1
/secrets
# Miscellaneous
*.class
+17
View File
@@ -0,0 +1,17 @@
# UNCOMMENT THESE LINES TO BUILD FROM LATEST COMMIT
# git reset --hard origin/main
# git pull
param(
[Parameter(Mandatory=$true)]
[string]$CERTIFICATE_PASSWORD
)
fvm flutter clean
fvm flutter pub get
fvm flutter pub run build_runner build -d
fvm flutter pub 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
Write-Output 'Generated Signed Windows msix!'
+6 -4
View File
@@ -2,9 +2,11 @@
# git reset --hard origin/main
# git pull
flutter clean
flutter pub get
flutter pub run build_runner build -d
flutter pub run msix:create --store
fvm flutter clean
fvm flutter pub get
fvm flutter pub run build_runner build -d
fvm flutter pub run msix:create --store
Move-Item -Path build/windows/runner/Release/localsend_app.msix -Destination LocalSend-XXX-windows-x86-64-store.msix
Write-Output 'Generated Windows msix!'