Skip to content

Commit 3c3fdea

Browse files
authored
Merge pull request #20 from FrozenAlex/master
Fix qpm build, update to bshook 4.0.1
2 parents effd2d7 + b9f4fff commit 3c3fdea

File tree

5 files changed

+24
-21
lines changed

5 files changed

+24
-21
lines changed

.github/workflows/build-ndk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
uses: actions/upload-artifact@v2
7474
with:
7575
name: debug_${{ steps.libname.outputs.NAME }}
76-
path: ./build/debug_${{ steps.libname.outputs.NAME }}
76+
path: ./build/debug/${{ steps.libname.outputs.NAME }}
7777
if-no-files-found: error
7878

7979
- name: Upload qmod artifact

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
tag_name: ${{ github.event.inputs.version }}
8484
files: |
8585
./build/${{ steps.libname.outputs.NAME }}
86-
./build/debug_${{ steps.libname.outputs.NAME }}
86+
./build/debug/${{ steps.libname.outputs.NAME }}
8787
./${{ env.qmodName }}.qmod
8888
env:
8989
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,12 @@ add_custom_command(TARGET ${COMPILE_ID} POST_BUILD
6767
COMMENT "Strip debug symbols done on final binary.")
6868

6969
add_custom_command(TARGET ${COMPILE_ID} POST_BUILD
70-
COMMAND ${CMAKE_COMMAND} -E rename lib${COMPILE_ID}.so debug_lib${COMPILE_ID}.so
70+
COMMAND ${CMAKE_COMMAND} -E make_directory debug
71+
COMMENT "Make directory for debug symbols"
72+
)
73+
74+
add_custom_command(TARGET ${COMPILE_ID} POST_BUILD
75+
COMMAND ${CMAKE_COMMAND} -E rename lib${COMPILE_ID}.so debug/lib${COMPILE_ID}.so
7176
COMMENT "Rename the lib to debug_ since it has debug symbols"
7277
)
7378

qpm.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"url": "https://github.com/sc2ad/Il2CppQuestTypePatching",
99
"additionalData": {
1010
"overrideSoName": "libcustom-types.so",
11-
"soLink": "https://github.com/sc2ad/Il2CppQuestTypePatching/releases/download/v0.1.0/libtypepatching.so",
12-
"debugSoLink": "https://github.com/sc2ad/Il2CppQuestTypePatching/releases/download/v0.1.0/libtypepatching_debug.so"
11+
"cmake": true
1312
}
1413
},
1514
"dependencies": [

qpm.shared.json

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@
88
"version": "0.4.6",
99
"url": "https://github.com/sc2ad/Il2CppQuestTypePatching",
1010
"additionalData": {
11-
"soLink": "https://github.com/sc2ad/Il2CppQuestTypePatching/releases/download/v0.1.0/libtypepatching.so",
12-
"debugSoLink": "https://github.com/sc2ad/Il2CppQuestTypePatching/releases/download/v0.1.0/libtypepatching_debug.so",
13-
"overrideSoName": "libcustom-types.so"
11+
"overrideSoName": "libcustom-types.so",
12+
"cmake": true
13+
}
14+
},
15+
"workspace": {
16+
"scripts": {
17+
"build": [
18+
"pwsh ./build.ps1"
19+
]
1420
}
1521
},
1622
"dependencies": [
@@ -30,14 +36,7 @@
3036
"private": true
3137
}
3238
}
33-
],
34-
"workspace": {
35-
"scripts": {
36-
"build": [
37-
"pwsh ./build.ps1"
38-
]
39-
}
40-
}
39+
]
4140
},
4241
"restoredDependencies": [
4342
{
@@ -53,14 +52,14 @@
5352
{
5453
"dependency": {
5554
"id": "beatsaber-hook",
56-
"versionRange": "=4.0.0",
55+
"versionRange": "=4.0.1",
5756
"additionalData": {
58-
"soLink": "https://github.com/sc2ad/beatsaber-hook/releases/download/v4.0.0/libbeatsaber-hook_4_0_0.so",
59-
"debugSoLink": "https://github.com/sc2ad/beatsaber-hook/releases/download/v4.0.0/debug_libbeatsaber-hook_4_0_0.so",
60-
"branchName": "version/v4_0_0"
57+
"soLink": "https://github.com/sc2ad/beatsaber-hook/releases/download/v4.0.1/libbeatsaber-hook_4_0_1.so",
58+
"debugSoLink": "https://github.com/sc2ad/beatsaber-hook/releases/download/v4.0.1/debug_libbeatsaber-hook_4_0_1.so",
59+
"branchName": "version/v4_0_1"
6160
}
6261
},
63-
"version": "4.0.0"
62+
"version": "4.0.1"
6463
},
6564
{
6665
"dependency": {

0 commit comments

Comments
 (0)