fix: signing

This commit is contained in:
Hiddify
2024-03-10 19:47:54 +01:00
parent 8ce22172f6
commit e8a15f48ee
2 changed files with 3 additions and 4 deletions

View File

@@ -129,8 +129,7 @@ jobs:
- name: Setup Windows Signing Properties
if: ${{ inputs.upload-artifact && startsWith(matrix.platform,'windows') }}
run: |
$decodedText = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("${{ secrets.WINDOWS_SIGNING_KEY }}"))
Set-Content -Path "windows\sign.pfx" -Value $decodedText
[IO.File]::WriteAllBytes("windows\sign.pfx", [Convert]::FromBase64String("${{ secrets.WINDOWS_SIGNING_KEY }}"))
(Get-Content "windows\packaging\msix\make_config.yaml") -replace '^certificate_password:.*$', 'certificate_password: ${{ secrets.WINDOWS_SIGNING_PASSWORD }}' | Set-Content "windows\packaging\msix\make_config.yaml"
@@ -181,7 +180,7 @@ jobs:
certificate: '${{ secrets.WINDOWS_SIGNING_KEY }}'
cert-password: '${{ secrets.WINDOWS_SIGNING_PASSWORD }}'
cert-sha1: '${{ secrets.WINDOWS_SIGNING_SHA1 }}'
folder: 'out'
folder: 'dist'
timestamp-server: 'http://timestamp.digicert.com'
recursive: true
description: 'Hiddify'

Submodule libcore updated: 5c36de643d...c86b5ccb0d