Skip to content

Commit

Permalink
win test
Browse files Browse the repository at this point in the history
  • Loading branch information
liias committed Jan 1, 2024
1 parent 4bec797 commit 3838cd9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/win-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI Test
run-name: CI Test
on: [ push ]
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
show-progress: false
- name: Install tools
run: |
#dir 'C:\Program Files (x86)\'
# dir 'C:\Program Files (x86)\Windows Kits\'
# dir 'C:\Program Files (x86)\Windows Kits\10\'
# dir 'C:\Program Files (x86)\Windows Kits\10\bin\'
# dir 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\'
# dir 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\'
# export PATH=$PATH:'C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\arm64'
# export PATH=$PATH:'C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64'
# "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x86\signtool" sign /fd SHA256 /p "<PASSWORD_HERE>" /ac SectigoPublicCodeSigningRootR46_AAA.crt /f codesign.pfx /tr http://timestamp.sectigo.com/rfc3161 /td sha256 yourProgram.exe
# "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x86\signtool" sign /fd SHA256 /p "<PASSWORD_HERE>" /ac SectigoPublicCodeSigningRootR46_AAA.crt /f codesign.pfx /tr http://timestamp.sectigo.com/rfc3161 /td sha256 yourProgram.exe
export PATH=$PATH:'/c/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64'
signtool sign -fd SHA256 -p password -ac signingroot.crt -f codesign.pfx -tr http:////time.certum.pl -td sha256 my.exe
# & 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x86/signtool.exe' sign /fd SHA256 /p $env:CODESIGN_PWD /ac certificate\intermediate.crt /f certificate\certificate.pfx /tr "http://timestamp.sectigo.com/rfc3161" /td sha256 target/release/espanso.exe
shell: bash
7 changes: 7 additions & 0 deletions build-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ make_archives() {
create_signatures "$target_dir" "browsers_windows.tar.xz"
}

sign_binary() {
echo "Signing binaries"
#signtool "$target_dir/x86_64/browsers.exe"
#signtool "$target_dir/aarch64/browsers.exe"
}

create_signatures() {
local target_dir="$1"
local file_name="$2"
Expand All @@ -111,5 +117,6 @@ create_signatures() {
}

build_binary
#sign_binary
build_app_bundle
make_archives

0 comments on commit 3838cd9

Please sign in to comment.