This commit is contained in:
恍兮惚兮 2024-04-26 18:31:20 +08:00
parent 7035b290e8
commit 49b586f62e
2 changed files with 18 additions and 27 deletions

View File

@ -20,15 +20,11 @@ jobs:
uses: GuillaumeFalourd/setup-windows10-sdk-action@v2 uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
with: with:
sdk-version: 22621 sdk-version: 22621
- name: Install Qt32 - name: Install Python 3.11
uses: jurplel/install-qt-action@v3.3.0 uses: actions/setup-python@v5
with: with:
version: ${{ env.QT_VERSION }} python-version: '3.11'
host: windows architecture: x64
target: desktop
arch: win32_msvc2019
dir: ${{ runner.temp }}
setup-python: true
- name: Run build script 32xp - name: Run build script 32xp
run: python build.py 32xp run: python build.py 32xp
@ -42,12 +38,12 @@ jobs:
- name: Upload English xp artifact - name: Upload English xp artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: Release_English_xp name: Release_English_xp.zip
path: builds/Release_English_xp.zip path: builds/Release_English_xp.zip
- name: Upload Chinese xp artifact - name: Upload Chinese xp artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: Release_Chinese_xp name: Release_Chinese_xp.zip
path: builds/Release_Chinese_xp.zip path: builds/Release_Chinese_xp.zip
build: build:
@ -89,22 +85,22 @@ jobs:
- name: Upload plugin32 artifact - name: Upload plugin32 artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: plugin32 name: plugin32.zip
path: builds/plugin32.zip path: builds/plugin32.zip
- name: Upload plugin64 artifact - name: Upload plugin64 artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: plugin64 name: plugin64.zip
path: builds/plugin64.zip path: builds/plugin64.zip
- name: Upload English artifact - name: Upload English artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: Release_English name: Release_English.zip
path: builds/Release_English.zip path: builds/Release_English.zip
- name: Upload Chinese artifact - name: Upload Chinese artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: Release_Chinese name: Release_Chinese.zip
path: builds/Release_Chinese.zip path: builds/Release_Chinese.zip
release: release:
needs: [build, build_xp] needs: [build, build_xp]
@ -115,37 +111,32 @@ jobs:
- name: Download plugin32 artifact - name: Download plugin32 artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: plugin32 name: plugin32.zip
path: builds path: builds
- name: Download plugin64 artifact - name: Download plugin64 artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: plugin64 name: plugin64.zip
path: builds path: builds
- name: Download English artifact - name: Download English artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: Release_English name: Release_English.zip
path: builds path: builds
- name: Download Chinese artifact - name: Download Chinese artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: Release_Chinese name: Release_Chinese.zip
path: builds path: builds
# - name: Download plugin32_xp artifact
# uses: actions/download-artifact@v4
# with:
# name: plugin32_xp
# path: builds
- name: Download English xp artifact - name: Download English xp artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: Release_English_xp name: Release_English_xp.zip
path: builds path: builds
- name: Download Chinese xp artifact - name: Download Chinese xp artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: Release_Chinese_xp name: Release_Chinese_xp.zip
path: builds path: builds
- name: Release LunaHook - name: Release LunaHook
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2

View File

@ -1,7 +1,7 @@
cmake ../CMakeLists.txt -G "Visual Studio 16 2019" -A win32 -T v141_xp -B ../build/x86_xp cmake -DWINXP=1 ../CMakeLists.txt -G "Visual Studio 16 2019" -A win32 -T v141_xp -B ../build/x86_xp
cmake --build ../build/x86_xp --config Release --target ALL_BUILD -j 14 cmake --build ../build/x86_xp --config Release --target ALL_BUILD -j 14
cmake -DLANGUAGE=Chinese ../CMakeLists.txt -G "Visual Studio 16 2019" -A win32 -T v141_xp -B ../build/x86_zh_xp cmake -DWINXP=1 -DLANGUAGE=Chinese ../CMakeLists.txt -G "Visual Studio 16 2019" -A win32 -T v141_xp -B ../build/x86_zh_xp
cmake --build ../build/x86_zh_xp --config Release --target ALL_BUILD -j 14 cmake --build ../build/x86_zh_xp --config Release --target ALL_BUILD -j 14
python edit_target.py python edit_target.py