diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bcae6ff..fd17040 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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