diff --git a/.drone.yml b/.drone.yml index 71694f9..742d19a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -45,11 +45,6 @@ steps: - $Env:version += type .\VERSION - $Env:builddate += type .\BUILDDATE - $Env:buildname = 'flwtch-win-' + $Env:version + '-' + $Env:builddate - - $Env:builddir = $Env:buildname - - $Env:zip = 'cwtch-' + $Env:version + '.zip' - - $Env:zipsha = $Env:zip + '.sha512' - - $Env:msix = 'cwtch-install-' + $Env:version + '.msix' - - $Env:msixsha = $Env:msix + '.sha512' - $Env:releasedir = "build\\windows\\runner\\Release\\" - flutter build windows --dart-define BUILD_VER=$Env:version --dart-define BUILD_DATE=$Env:builddate - copy windows\libCwtch.dll $Env:releasedir @@ -60,20 +55,29 @@ steps: - copy C:\BuildTools\VC\Redist\MSVC\14.29.30036\x64\Microsoft.VC142.CRT\vcruntime140_1.dll $Env:releasedir - copy C:\BuildTools\VC\Redist\MSVC\14.29.30036\x64\Microsoft.VC142.CRT\msvcp140.dll $Env:releasedir - powershell -command "Expand-Archive -Path tor.zip -DestinationPath $Env:releasedir\Tor" - - name: package-windows - image: openpriv:nsis:latest - environment: - pfx: - from_secret: pfx - pfx_pass: - from_secret: pfx_pass - commands: + + - name: package-windows + image: openpriv/nsis:latest + environment: + pfx: + from_secret: pfx + pfx_pass: + from_secret: pfx_pass + commands: + - $Env:version += type .\VERSION + - $Env:builddate += type .\BUILDDATE + - $Env:releasedir = "build\\windows\\runner\\Release\\" + - $Env:zip = 'cwtch-' + $Env:version + '.zip' + - $Env:zipsha = $Env:zip + '.sha512' + - $Env:msix = 'cwtch-install-' + $Env:version + '.msix' + - $Env:msixsha = $Env:msix + '.sha512' + - $Env:builddir = $Env:buildname - echo $Env:pfx > codesign.pfx.b64 - certutil -decode codesign.pfx.b64 codesign.pfx - - C:\MSIX-Toolkit\MSIX-Toolkit.x64\signtool sign /v /fd sha256 /a /f codesign.pfx /p $Env:pfx_pass /tr http://timestamp.digicert.com $Env:releasedir\cwtch.exe - - copy window\runner\resources\knot_128.ico $Env:releasedir\cwtch.ico + - signtool sign /v /fd sha256 /a /f codesign.pfx /p $Env:pfx_pass /tr http://timestamp.digicert.com $Env:releasedir\cwtch.exe + - copy windows\runner\resources\knot_128.ico $Env:releasedir\cwtch.ico - makensis windows\nsis\cwtch-installer.nsi - - C:\MSIX-Toolkit\MSIX-Toolkit.x64\signtool sign /v /fd sha256 /a /f codesign.pfx /p $Env:pfx_pass /tr http://timestamp.digicert.com cwtch-installer.exe + - signtool sign /v /fd sha256 /a /f codesign.pfx /p $Env:pfx_pass /tr http://timestamp.digicert.com cwtch-installer.exe - powershell -command "(Get-FileHash cwtch-installer.exe -Algorithm sha512).Hash" > cwtch-installer.sha512 - mkdir deploy - mkdir deploy\$Env:builddir @@ -87,8 +91,8 @@ steps: - name: deploy-windows image: openpriv/flutter-desktop:windows-sdk30-fdev2.3rc when: - event: push - status: [ success ] + event: push + status: [ success ] environment: BUILDFILES_KEY: from_secret: buildfiles_key diff --git a/README.md b/README.md index 58b3164..34241d4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# flwtch +# Cwtch UI A Flutter based Cwtch UI