zwallet/build-flutter-win.ps1

23 lines
715 B
PowerShell

Invoke-WebRequest -Uri https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile \windows\system32\nuget.exe
nuget sources add -Source https://api.nuget.org/v3/index.json -Name nuget.org
flutter pub get
flutter pub run build_runner build
pushd packages\warp_api_ffi
flutter pub get
flutter pub run build_runner build
popd
flutter build windows
copy runtime\* build\windows\runner\Release
copy warp_api_ffi.dll build\windows\runner\Release
flutter pub run msix:create
copy runtime\* build\windows\runner\Release
pushd build\windows\runner
move-item Release\YWallet.msix .
rename-item Release ywallet
Compress-Archive -Path ywallet\ -DestinationPath ..\..\..\ywallet.zip
copy YWallet.msix ..\..\..
popd