Skip to content

Commit

Permalink
Check thumbprint
Browse files Browse the repository at this point in the history
  • Loading branch information
TaYaKi71751 committed Sep 30, 2024
1 parent 1d2892a commit d947be4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ jobs:
run: |
whoami /groups
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 -ProtectTo Administrators
New-SelfSignedCertificate -Type Custom -Subject "CN=Contoso Software, O=Contoso Corporation, C=US" -KeyUsage DigitalSignature -FriendlyName "TaYaKi71751" -CertStoreLocation "Cert:\CurrentUser\My" -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3", "2.5.29.19={text}")
$Thumbprint=Get-ChildItem -Path Cert:\CurrentUser\My\
$Thumbprint=$Thumbprint.Thumbprint
Export-PfxCertificate -cert "Cert:\CurrentUser\My\$Thumbprint" -FilePath .\Cert\test_certificate.pfx -ProtectTo Administrators
flutter build windows
flutter pub run msix:create --certificate-path test_certificate.pfx
- name: Save build Artifact
Expand Down

0 comments on commit d947be4

Please sign in to comment.