From 39351d6f38fcdfcc20f97ff45b3d24f0ae8d829e Mon Sep 17 00:00:00 2001 From: TaYaKi71751 Date: Tue, 1 Oct 2024 00:57:24 +0900 Subject: [PATCH] Use custom cert --- .github/workflows/build.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3163eb6..e72f5e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: