Skip to content

Commit

Permalink
Use TaYaKi71751
Browse files Browse the repository at this point in the history
  • Loading branch information
TaYaKi71751 committed Sep 30, 2024
1 parent 2165b1c commit 1fc510c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ jobs:
uses: subosito/flutter-action@main
- name: Build
run: |
$length = 128
$characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'.ToCharArray()
$randomString = -join ((1..$length) | ForEach-Object { $characters | Get-Random })
# $length = 128
# $characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'.ToCharArray()
# $randomString = -join ((1..$length) | ForEach-Object { $characters | Get-Random })
$randomString = "TaYaKi71751"
$cert = New-SelfSignedCertificate -Type CodeSigning -Subject "CN=TaYaKi71751" -CertStoreLocation "Cert:\CurrentUser\My"
$password = ConvertTo-SecureString -String "$randomString" -Force -AsPlainText
Export-PfxCertificate -Cert $cert -FilePath "key.pfx" -Password $password
openssl pkcs12 -in key.pfx -clcerts -nokeys -out key.cer -passin pass:$randomString
flutter build windows
flutter pub run msix:create --certificate-path key.pfx --certificate-password $randomString --install-certificate false
Expand Down

0 comments on commit 1fc510c

Please sign in to comment.