Skip to content

Commit

Permalink
Try SInging
Browse files Browse the repository at this point in the history
  • Loading branch information
thororen1234 committed Feb 4, 2025
1 parent 630dbaa commit 3ff2f01
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
FORCE_COLOR: true
TIMESTAMP_SERVER: http://timestamp.digicert.com/

jobs:
build-linux:
Expand Down Expand Up @@ -158,6 +159,25 @@ jobs:
export GOPATH=/mingw64
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -v -tags "static cli" -ldflags "-s -w -extldflags=-static -X 'vencord/buildinfo.InstallerGitHash=$(git rev-parse --short HEAD)' -X 'vencord/buildinfo.InstallerTag=${{ github.ref_name }}'" -o EquilotlCli.exe
- name: Import code signing certificate
run: |
$pfxCertFilePath = Join-Path -Path $PSScriptRoot -ChildPath "CodeSigningCertificate.pfx"
Set-Content -Value $([System.Convert]::FromBase64String($env:BASE64_PFX)) -Path $pfxCertFilePath -AsByteStream
Import-PfxCertificate -FilePath $pfxCertFilePath -Password $($env:PFX_PASSWORD | ConvertTo-SecureString -AsPlainText -Force) -CertStoreLocation Cert:/CurrentUser/My
env:
BASE64_PFX: ${{secrets.BASE64_PFX}}
PFX_PASSWORD: ${{secrets.PFX_PASSWORD}}

- name: Digitally sign equilotl executable
run: |
New-Alias "signtool" "C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64\signtool.exe"
signtool sign /a /t ${{env.TIMESTAMP_SERVER}} Equilotl.exe
- name: Digitally sign equilotl executable
run: |
New-Alias "signtool" "C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64\signtool.exe"
signtool sign /a /t ${{env.TIMESTAMP_SERVER}} EquilotlCli.exe
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 3ff2f01

Please sign in to comment.