Skip to content

Commit 86fb3c7

Browse files
committed
Add code signing
1 parent a74668e commit 86fb3c7

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ permissions:
55

66
jobs:
77
build:
8+
environment: ${{ startsWith(github.ref, 'refs/tags/release-') && 'release' || 'testsign' }}
9+
env:
10+
HT_ENDPOINT: ${{ vars.HT_ENDPOINT }}
11+
HT_SIGNING_PROFILE: ${{ vars.HT_SIGNING_PROFILE }}
12+
HT_USER: ${{ vars.HT_USER }}
13+
HT_SECRET: ${{ secrets.HT_SECRET }}
814
runs-on: windows-2022
915
steps:
1016
- name: Checkout
@@ -13,7 +19,7 @@ jobs:
1319
- name: Build LuaJIT
1420
shell: cmd
1521
run: |
16-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86 10.0.22000.0 -vcvars_ver=14
22+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86 -vcvars_ver=14
1723
1824
curl -OL https://github.com/LuaJIT/LuaJIT/archive/refs/tags/v2.0.4.zip
1925
powershell -nologo -command "Expand-Archive v2.0.4.zip"
@@ -41,7 +47,7 @@ jobs:
4147
- name: build
4248
shell: cmd
4349
run: |
44-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86 10.0.22000.0 -vcvars_ver=14
50+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86 -vcvars_ver=14
4551
call ".\venv\Scripts\activate.bat"
4652
mkdir build
4753
cmake -S . -B build -G "Ninja" ^
@@ -57,7 +63,7 @@ jobs:
5763
- name: Run CPack
5864
shell: cmd
5965
run: |
60-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86 10.0.22000.0 -vcvars_ver=14
66+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86 -vcvars_ver=14
6167
cd build
6268
cpack
6369

packaging/CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,20 @@ foreach(NP_COMPONENT IN LISTS CPACK_COMPONENTS_ALL)
3333
)
3434
endforeach()
3535

36+
include(FetchContent)
37+
FetchContent_Declare(
38+
Handtokening_CMake
39+
GIT_REPOSITORY https://github.com/dextercd/Handtokening-CMake.git
40+
GIT_TAG b492761e64dffba932a5c51a8123869a1149ed49
41+
)
42+
FetchContent_MakeAvailable(Handtokening_CMake)
43+
44+
list(APPEND HT_SIGN_PATTERNS
45+
"nsew_server\\.exe" "description=Example one-way world sync server"
46+
"nsew_native\\.dll" "description=NSEW Native Module"
47+
"noitapatcher\\.dll" "description=Unofficial Modding API Extension"
48+
)
49+
include(Handtokening)
50+
3651
set(CPACK_VERBATIM_VARIABLES ON)
3752
include(CPack)

0 commit comments

Comments
 (0)