Skip to content

Commit 2d2174d

Browse files
committed
Try codesigning on Windows
1 parent b537d70 commit 2d2174d

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/Create_installer.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
# 4. <MacOS 14 with arm64 arch, Release, Clang 15 compiler toolchain
2222
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the list.
2323
matrix:
24-
os: [windows-2022, ubuntu-22.04, macos-14, macos-15-intel]
24+
# os: [windows-2022, ubuntu-22.04, macos-14, macos-15-intel]
25+
os: [windows-2022]
2526

2627
steps:
2728
- name: Checkout EasyImaginApp
@@ -95,6 +96,30 @@ jobs:
9596
run: |
9697
${{env.IQTA_TOOLS}}/QtInstallerFramework/4.7/bin/binarycreator -c config/config.xml -p packages ${{runner.os}}-${{runner.arch}}_EasyImaging_Installer
9798
99+
- name: Install DigiCert Client tools from Github Custom Actions marketplace
100+
if: runner.os == 'windows'
101+
uses: digicert/[email protected]
102+
103+
- name: Set up P12 certificate
104+
if: runner.os == 'windows'
105+
shell: bash
106+
run: echo "${{ secrets.WINDOWS_CERT_DATA }}" | base64 --decode > /d/Certificate_pkcs12.p12
107+
108+
- name: Set keylocker variables
109+
if: runner.os == 'windows'
110+
shell: bash
111+
run: |
112+
echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
113+
echo "SM_HOST=${{ secrets.KEYLOCKER_HOST }}" >> "$GITHUB_ENV"
114+
echo "SM_API_KEY=${{ secrets.KEYLOCKER_API_KEY }}" >> "$GITHUB_ENV"
115+
echo "SM_CLIENT_CERT_FILE=D:\\Certificate_pkcs12.p12" >> "$GITHUB_ENV"
116+
echo "SM_CLIENT_CERT_PASSWORD=${{ secrets.WINDOWS_CERT_PASSWORD }}" >> "$GITHUB_ENV"
117+
118+
- name: Sign the binary using keypair alias
119+
if: runner.os == 'windows'
120+
shell: cmd
121+
run: smctl sign --keypair-alias key_911959544 --input imaging-app\Installer\*EasyImaging_Installer.exe
122+
98123
- name: Upload installers
99124
uses: actions/upload-artifact@master
100125
with:

0 commit comments

Comments
 (0)