File tree Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ permissions:
55
66jobs :
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
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"
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" ^
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
Original file line number Diff line number Diff line change @@ -33,5 +33,20 @@ foreach(NP_COMPONENT IN LISTS CPACK_COMPONENTS_ALL)
3333 )
3434endforeach ()
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+
3651set (CPACK_VERBATIM_VARIABLES ON )
3752include (CPack)
You can’t perform that action at this time.
0 commit comments