Skip to content

Commit cc721e1

Browse files
committed
Regenerate MSIX certificate
1 parent 3875d8e commit cc721e1

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@
1111
/macos/fastlane/4TV2PTBPVG.json filter=git-crypt diff=git-crypt
1212
/macos/firebase_app_id_file.json filter=git-crypt diff=git-crypt
1313
/macos/gc_keys.json filter=git-crypt diff=git-crypt
14-
/windows/ca.crt filter=git-crypt diff=git-crypt
1514
/windows/certificate.pfx filter=git-crypt diff=git-crypt
1615
*.encrypted.dart filter=git-crypt diff=git-crypt

.github/workflows/flutter.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,7 @@ jobs:
269269
fingerprint: <!-- ${{ github.sha }} -->
270270

271271
build_windows:
272-
# disable Windows build until msix issue can be fixed
273-
# if: ${{ github.ref == 'refs/heads/master' || contains(github.ref, 'windows') }}
274-
if: ${{ contains(github.ref, 'windows') }}
272+
if: ${{ github.ref == 'refs/heads/master' || contains(github.ref, 'windows') }}
275273
runs-on: windows-2022
276274
defaults:
277275
run:
@@ -314,7 +312,6 @@ jobs:
314312
run: |
315313
set -e
316314
317-
gsutil cp windows/ca.crt "${GCS_PATH}/windows/ca.crt"
318315
gsutil cp build/windows/runner/Release/the_app.msix "${GCS_PATH}/windows/the_app.msix"
319316
320317
- name: Prepare markdown
@@ -329,7 +326,7 @@ jobs:
329326
echo "PACKAGE_VERSION=${PACKAGE_VERSION}"; \
330327
echo '```'; \
331328
echo; \
332-
printf '1. Install [ca.crt](%s) as a trusted root CA\n' "${GCS_URL}/windows/ca.crt"; \
329+
printf '1. [Installing a test certificate directly from an MSIX package](https://www.advancedinstaller.com/install-test-certificate-from-msix.html)\n'; \
333330
printf '1. Then run [the installer](%s)\n' "${GCS_URL}/windows/the_app.msix"; \
334331
)
335332

pubspec.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ flutter:
6363
uses-material-design: true
6464

6565
msix_config:
66+
# New-SelfSignedCertificate -Type Custom -Subject "[email protected], CN=Dao Hoang Son, OU=Developer, O=DAO HOANG SON, L=Vietnam, S=Ho Chi Minh City, C=VN" -KeyUsage DigitalSignature -FriendlyName "flutter_ttdemo msix certificate" -CertStoreLocation "Cert:\CurrentUser\My" -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3", "2.5.29.19={text}") -NotAfter (Get-Date).AddYears(10)
6667
certificate_path: windows\certificate.pfx
68+
# $password = ConvertTo-SecureString -String release -Force -AsPlainText
69+
# Export-PfxCertificate -cert "Cert:\CurrentUser\My\<the 38 character thumbprint>" -FilePath certificate.pfx -Password $password
6770
certificate_password: release
6871
identity_name: com.daohoangson.flutterttdemo
6972
publisher: [email protected], CN=Dao Hoang Son, OU=Developer, O=DAO HOANG SON, L=Vietnam, S=Ho Chi Minh City, C=VN
73+
signtool_options: /debug

windows/ca.crt

-1.38 KB
Binary file not shown.

windows/certificate.pfx

409 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)