From 3667a5ee6e36c40a08eefe176f4688dfff41cb5c Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 12 May 2021 15:52:20 -0700 Subject: [PATCH 1/6] drone windows final --- .drone.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index eade846..b86dad9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -205,27 +205,21 @@ steps: image: openpriv/flutter-desktop:windows-dev commands: - flutter pub get - - # TEMP comment out build to test completion - - #flutter build windows + - flutter build windows # flwtch-`cat VERSION`-`cat BUILDDATE` - $Env:buildname = 'flwtch-win-' - $Env:buildname += type .\VERSION - $Env:buildname += '-' - $Env:buildname += type .\BUILDDATE - - $Env:builddir = 'deploy\flwtch-win-' - $Env:builddir += $Env:buildname - $Env:zip = $Env:buildname - $Env:zip += '.zip' - - echo $Env:builddir - - echo $Env:zip - mkdir deploy - #- move build\\windows\\runner\\Release $Env:builddir - - mkdir $Env:builddir + - move build\\windows\\runner\\Release $Env:builddir - powershell -command "Expand-Archive -Path tor.zip -DestinationPath $Env:builddir\Tor" - powershell -command "Compress-Archive -Path $Env:builddir -DestinationPath $Env:zip" - - dir - - dir deploy - - move $Env:zip $Env:builddir + - powershell -command "(Get-FileHash tor.zip -Algorithm sha512).Hash > deploy\$Env:zip.sha512" + - move $Env:zip deploy - dir deploy - name: deploy-windows image: openpriv/flutter-desktop:windows-sdk30-fdev2.2rc From a65e702dbbc52f470cfa81a672760808a49580d4 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 12 May 2021 16:05:24 -0700 Subject: [PATCH 2/6] drone windows final --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b86dad9..fd9abdd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -218,8 +218,9 @@ steps: - move build\\windows\\runner\\Release $Env:builddir - powershell -command "Expand-Archive -Path tor.zip -DestinationPath $Env:builddir\Tor" - powershell -command "Compress-Archive -Path $Env:builddir -DestinationPath $Env:zip" - - powershell -command "(Get-FileHash tor.zip -Algorithm sha512).Hash > deploy\$Env:zip.sha512" + - powershell -command "(Get-FileHash tor.zip -Algorithm sha512).Hash > $Env:zip.sha512" - move $Env:zip deploy + - move $Env:zip.sha512 deploy - dir deploy - name: deploy-windows image: openpriv/flutter-desktop:windows-sdk30-fdev2.2rc From dcaf6ccf8a59c647e19d67632cfea1a224428050 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 12 May 2021 16:15:26 -0700 Subject: [PATCH 3/6] drone windows final --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index fd9abdd..5dfa73b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -218,7 +218,7 @@ steps: - move build\\windows\\runner\\Release $Env:builddir - powershell -command "Expand-Archive -Path tor.zip -DestinationPath $Env:builddir\Tor" - powershell -command "Compress-Archive -Path $Env:builddir -DestinationPath $Env:zip" - - powershell -command "(Get-FileHash tor.zip -Algorithm sha512).Hash > $Env:zip.sha512" + - powershell -command "(Get-FileHash tor.zip -Algorithm sha512).Hash > .\$Env:zip.sha512" - move $Env:zip deploy - move $Env:zip.sha512 deploy - dir deploy From efcc1a64ab25488ffa07f4370ec3c09829d4463a Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 12 May 2021 16:30:22 -0700 Subject: [PATCH 4/6] drone windows test final --- .drone.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5dfa73b..849c08f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -204,8 +204,8 @@ steps: - name: build-windows image: openpriv/flutter-desktop:windows-dev commands: - - flutter pub get - - flutter build windows + #- flutter pub get + #- flutter build windows # flwtch-`cat VERSION`-`cat BUILDDATE` - $Env:buildname = 'flwtch-win-' - $Env:buildname += type .\VERSION @@ -214,13 +214,17 @@ steps: - $Env:builddir += $Env:buildname - $Env:zip = $Env:buildname - $Env:zip += '.zip' + - $Env:sha = $Env:zip + - $Env:sha += '.sha512' - mkdir deploy - - move build\\windows\\runner\\Release $Env:builddir + #- move build\\windows\\runner\\Release $Env:builddir + - mkdir $Env:builddir - powershell -command "Expand-Archive -Path tor.zip -DestinationPath $Env:builddir\Tor" - powershell -command "Compress-Archive -Path $Env:builddir -DestinationPath $Env:zip" - - powershell -command "(Get-FileHash tor.zip -Algorithm sha512).Hash > .\$Env:zip.sha512" - - move $Env:zip deploy - - move $Env:zip.sha512 deploy + - powershell -command "(Get-FileHash $Env:zip -Algorithm sha512).Hash" > $Env:sha + - mkdir deploy\$Env:builddir + - move $Env:zip deploy\$Env:builddir + - move $Env:sha deploy\$Env:builddir - dir deploy - name: deploy-windows image: openpriv/flutter-desktop:windows-sdk30-fdev2.2rc From 1328eacb1ba74f1a8834cef1d6e5f922bd622b7c Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 12 May 2021 16:35:21 -0700 Subject: [PATCH 5/6] drone window syntax is so dumb --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 849c08f..a21023e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -221,7 +221,8 @@ steps: - mkdir $Env:builddir - powershell -command "Expand-Archive -Path tor.zip -DestinationPath $Env:builddir\Tor" - powershell -command "Compress-Archive -Path $Env:builddir -DestinationPath $Env:zip" - - powershell -command "(Get-FileHash $Env:zip -Algorithm sha512).Hash" > $Env:sha + - powershell -command "(Get-FileHash $Env:zip -Algorithm sha512).Hash" > sha + - move sha $Env:sha - mkdir deploy\$Env:builddir - move $Env:zip deploy\$Env:builddir - move $Env:sha deploy\$Env:builddir From eb1b4bc46fe88e9860390157c039e878ca16ac8a Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 12 May 2021 16:39:58 -0700 Subject: [PATCH 6/6] drone window syntax is so dumb --- .drone.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index a21023e..1dc30ae 100644 --- a/.drone.yml +++ b/.drone.yml @@ -221,8 +221,7 @@ steps: - mkdir $Env:builddir - powershell -command "Expand-Archive -Path tor.zip -DestinationPath $Env:builddir\Tor" - powershell -command "Compress-Archive -Path $Env:builddir -DestinationPath $Env:zip" - - powershell -command "(Get-FileHash $Env:zip -Algorithm sha512).Hash" > sha - - move sha $Env:sha + - powershell -command "(Get-FileHash *.zip -Algorithm sha512).Hash" > $Env:sha - mkdir deploy\$Env:builddir - move $Env:zip deploy\$Env:builddir - move $Env:sha deploy\$Env:builddir