drone windows msix do pubspec.yaml sub before flutter get
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Dan Ballard 2021-06-23 18:47:52 -07:00
parent da8a35458f
commit 66568a7983
1 changed files with 2 additions and 2 deletions

View File

@ -227,6 +227,8 @@ steps:
pfx_pass:
from_secret: pfx_pass
commands:
- move pubspec.yaml pubspec.yaml.orig
- (Get-Content -path pubspec.yaml.orig -Raw) -replace 'pfx_pass',"$Env:pfx_pass" | Set-Content -path pubspec.yaml
- flutter pub get
# flwtch-`cat VERSION`-`cat BUILDDATE`
- $Env:buildname = 'flwtch-win-'
@ -244,8 +246,6 @@ steps:
- flutter build windows --dart-define BUILD_VER=$Env:version --dart-define BUILD_DATE=$Env:builddate
- echo $Env:pfx > codesign.pfx.b64
- certutil -decode codesign.pfx.b64 codesign.pfx
- move pubspec.yaml pubspec.yaml.orig
- (Get-Content -path pubspec.yaml.orig -Raw) -replace 'pfx_pass',"$Env:pfx_pass" | Set-Content -path pubspec.yaml
- flutter pub run msix:create
- mkdir deploy
- move build\\windows\\runner\\Release $Env:builddir