drone windows msix
This commit is contained in:
parent
225301bda6
commit
3e56f8c917
11
.drone.yml
11
.drone.yml
|
@ -218,9 +218,14 @@ steps:
|
|||
- git describe --tags > VERSION
|
||||
- powershell -command "Get-Date -Format 'yyyy-MM-dd-HH-mm'" > BUILDDATE
|
||||
- .\fetch-libcwtch-go.ps1
|
||||
-
|
||||
|
||||
- name: build-windows
|
||||
image: openpriv/flutter-desktop:windows-sdk30-fdev2.3rc
|
||||
environment:
|
||||
pfx:
|
||||
from_secret: pfx
|
||||
pfx_pass:
|
||||
from_secret: pfx_pass
|
||||
commands:
|
||||
- flutter pub get
|
||||
# flwtch-`cat VERSION`-`cat BUILDDATE`
|
||||
|
@ -237,6 +242,10 @@ steps:
|
|||
- $Env:sha = $Env:zip
|
||||
- $Env:sha += '.sha512'
|
||||
- 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
|
||||
- (Get-Content -path pubspec.yaml -Raw) -replace 'pfx_pass',"$Env:pfx_pass" > pubspec.yaml
|
||||
- flutter pub run msix:create
|
||||
- mkdir deploy
|
||||
- move build\\windows\\runner\\Release $Env:builddir
|
||||
- copy windows\libCwtch.dll $Env:builddir
|
||||
|
|
18
pubspec.yaml
18
pubspec.yaml
|
@ -51,6 +51,8 @@ dependencies:
|
|||
path: plugins/window_size
|
||||
ref: e48abe7c3e9ebfe0b81622167c5201d4e783bb81
|
||||
|
||||
dev_dependencies:
|
||||
msix: ^2.1.3
|
||||
# Uncomment to update lokalise translations (see README for list of deps to comment out bc incompatibilities)
|
||||
#dev_dependencies:
|
||||
# flutter_lokalise: any
|
||||
|
@ -116,3 +118,19 @@ flutter:
|
|||
#
|
||||
# For details regarding fonts from package dependencies,
|
||||
# see https://flutter.dev/custom-fonts/#from-packages
|
||||
|
||||
|
||||
msix_config:
|
||||
display_name: Cwtch
|
||||
publisher_display_name: Open Privacy Research Society
|
||||
identity_name: im.cwtch.flwtch
|
||||
msix_version: 1.0.0.0
|
||||
certificate_path: codesign.pfx
|
||||
certificate_password: pfx_pass
|
||||
publisher: CN=Open Privacy Research Society, O=Open Privacy Research Society, L=Vancouver, S=BC, C=CA
|
||||
logo_path: cwtch.png
|
||||
start_menu_icon_path: cwtch.png
|
||||
tile_icon_path: assets\cwtch_title.png
|
||||
icons_background_color: transparent
|
||||
architecture: x64
|
||||
capabilities: 'internetClient'
|
||||
|
|
Loading…
Reference in New Issue