Skip to content

Commit

Permalink
Fix AuToTooth
Browse files Browse the repository at this point in the history
  • Loading branch information
quizhizhe committed Mar 22, 2023
1 parent d46e111 commit 3159677
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,12 @@ jobs:
if: github.event.inputs.status == 'stable'
run: |
cd Scripts
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
chmod +x ./UploadTooth.sh
./UploadTooth.sh ${{ github.event.inputs.tag }}
env:
REPO_KEY: ${{secrets.ACTIONS_TOKEN}}
REPO_KEY: ${{secrets.PUSH_TOKEN}}
USERNAME: github-actions[bot]
shell: bash

Expand Down
12 changes: 6 additions & 6 deletions Scripts/UploadTooth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ TOOTH_REMOTE_PATH=https://github.com/Tooth-Hub/LiteLoaderBDS-Legacy.git

cd ..
echo [INFO] Fetching LiteLoaderBDS-Legacy Tooth to GitHub ...

git config --global core.autocrlf false
# 获取标签
now_tag=$(git describe --tags --always | cut -d "-" -f 1)
#now_tag=$(git describe --tags --always | cut -d "-" -f 1)
now_tag=$1

echo NOW_TAG $now_tag

Expand All @@ -29,8 +30,7 @@ echo
cp -r build/LiteLoaderBDS/* Tooth

cd Tooth
version=$1
vers=" \"version\": \"${version:1}\","
vers=" \"version\": \"${now_tag:1}\","

#modify tooth.json
sed -i "4c\ ${vers}" ./tooth.json
Expand All @@ -48,8 +48,8 @@ if [ "$now_status" ]; then
echo [INFO] Pushing to origin...
echo

git push https://%USERNAME%:%REPO_KEY%@github.com/Tooth-Hub/LiteLoaderBDS-Legacy.git Protocol-408
git push --tags https://%USERNAME%:%REPO_KEY%@github.com/Tooth-Hub/LiteLoaderBDS-Legacy.git Protocol-408
git push https://${USERNAME}:${REPO_KEY}@github.com/Tooth-Hub/LiteLoaderBDS-Legacy.git Protocol-408
git push --tags https://${USERNAME}:${REPO_KEY}@github.com/Tooth-Hub/LiteLoaderBDS-Legacy.git Protocol-408

cd ..
echo
Expand Down
11 changes: 9 additions & 2 deletions Tools/SymDBHelper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ project(SymDBHelper)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR}/LiteLoader/Lib/)

add_definitions(-D"NDEBUG" -D"_LIB" -D"_UNICODE" -D"UNICODE")

Expand All @@ -13,4 +12,12 @@ add_compile_options(
)

add_library(SymDBHelper STATIC SymDBHelper.cpp)
target_link_libraries(SymDBHelper Demangler)
target_link_libraries(SymDBHelper Demangler)

# use hardcode path to avoid the problem of different build path
add_custom_command(
TARGET SymDBHelper POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:SymDBHelper> ${CMAKE_BINARY_DIR}/sdk/lib/
COMMENT "Copying lib to sdk directory"
VERBATIM
)

0 comments on commit 3159677

Please sign in to comment.