Skip to content

Commit

Permalink
Use custom cert
Browse files Browse the repository at this point in the history
  • Loading branch information
TaYaKi71751 committed Sep 30, 2024
1 parent 372518c commit 39351d6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@ jobs:
uses: subosito/flutter-action@main
- name: Build
run: |
mkdir Cert
New-SelfSignedCertificate -Type Custom -Subject "CN=Contoso Software, O=Contoso Corporation, C=US" -KeyUsage DigitalSignature -FriendlyName "TaYaKi71751" -CertStoreLocation ".\Cert" -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3", "2.5.29.19={text}")
Export-PfxCertificate -cert ".\Cert" -FilePath .\Cert\test_certificate.pfx
flutter build windows
echo y | flutter pub run msix:create
where /r D:\ test_certificate.pfx
flutter pub run msix:create --certificate-path test_certificate.pfx
- name: Save build Artifact
uses: actions/upload-artifact@main
with:
name: package (EXE Files)
path: 'build\windows\x64\runner\Release\*'
path: |
build\windows\x64\runner\Release\*
Cert\test_certificate.pfx
# https://github.com/AppImageCrafters/appimage-builder-flutter-example/blob/main/.github/workflows/appimage.yml
linux-build:
Expand Down

0 comments on commit 39351d6

Please sign in to comment.