Skip to content

Commit 5837286

Browse files
committed
Attempt to sign
1 parent af06c40 commit 5837286

File tree

3 files changed

+51
-4
lines changed

3 files changed

+51
-4
lines changed

.github/workflows/scrutiny-app.yml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,44 @@ jobs:
9494

9595
# Launch Nuitka
9696
- name: Nuitka build
97-
run: ./scripts/nuitka_build.sh
97+
run: ./scripts/nuitka_build.sh build
9898
shell: bash
9999

100+
- name: Sign Executable
101+
- uses: sslcom/esigner-codesign@develop
102+
with:
103+
command: sign
104+
username: ${{secrets.CODESIGN_USERNAME}}
105+
password: ${{secrets.CODESIGN_PASSWORD}}
106+
credential_id: ${{secrets.CODESIGN_CREDENTIAL_ID}}
107+
totp_secret: ${{secrets.CODESIGN_TOTP_SECRET}}
108+
file_path: ./build/scrutiny.dist/scrutiny.exe
109+
override: true
110+
clean_logs: true
111+
100112
# Launch InnoSetup
101113
- name: InnoSetup packaging
102-
run: ./scripts/make_windows_installer.sh
114+
run: ./scripts/make_windows_installer.sh build
103115
shell: bash
104116

117+
- name: Get Installer Name
118+
run: |
119+
echo "INSTALLER_NAME=$(./make_windows_installer_name.sh)" >> $GITHUB_ENV
120+
121+
- name: Sign Installer
122+
- uses: sslcom/esigner-codesign@develop
123+
with:
124+
command: sign
125+
username: ${{secrets.CODESIGN_USERNAME}}
126+
password: ${{secrets.CODESIGN_PASSWORD}}
127+
credential_id: ${{secrets.CODESIGN_CREDENTIAL_ID}}
128+
totp_secret: ${{secrets.CODESIGN_TOTP_SECRET}}
129+
file_path: ./build/installer/${{ env.INSTALLER_NAME }}.exe
130+
override: true
131+
clean_logs: true
132+
105133
- name: Upload Artifact
106134
uses: actions/upload-artifact@v4
107135
with:
108136
name: Windows installer ${{ github.ref_name }}
109-
path: ./nuitka_build/installer/*.exe
137+
path: ./build/installer/${{ env.INSTALLER_NAME }}.exe

scripts/make_windows_installer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ SCRUTINY_VERSION=$( ${SOURCE_DIR}/scrutiny.exe version --format short )
2828

2929
info "Scrutiny version: $SCRUTINY_VERSION"
3030
assert_scrutiny_version_format "$SCRUTINY_VERSION"
31-
PKG_NAME="scrutinydebugger_v${SCRUTINY_VERSION}_$(uname -m)_setup"
31+
PKG_NAME=$(./scripts/make_windows_installer_name.sh)
3232

3333
cp ${PROJECT_ROOT}/deploy/windows/scrutiny.ico ${SOURCE_DIR}/
3434

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
source $(dirname ${BASH_SOURCE[0]})/common.sh
5+
6+
# Find project root
7+
NUITKA_OUTPUT=$(dir_with_default ${1:-""} "nuitka_build")
8+
PROJECT_ROOT="$(get_project_root)"
9+
SOURCE_DIR="${NUITKA_OUTPUT}/scrutiny.dist"
10+
11+
cd ${PROJECT_ROOT}
12+
13+
assert_dir "$SOURCE_DIR"
14+
15+
SCRUTINY_VERSION=$( ${SOURCE_DIR}/scrutiny.exe version --format short )
16+
17+
assert_scrutiny_version_format "$SCRUTINY_VERSION"
18+
PKG_NAME="scrutinydebugger_v${SCRUTINY_VERSION}_$(uname -m)_setup"
19+
echo ${PKG_NAME}

0 commit comments

Comments
 (0)