mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-05-31 03:03:41 +00:00
Fix AuToTooth
This commit is contained in:
parent
d46e111e8d
commit
3159677ba0
5
.github/workflows/publish_release.yml
vendored
5
.github/workflows/publish_release.yml
vendored
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
@ -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
|
||||
@ -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
|
||||
|
@ -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")
|
||||
|
||||
@ -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
|
||||
)
|
Loading…
Reference in New Issue
Block a user