新增snbt 转 json 工具 #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build FTBQ Color Check and Upload | |
on: | |
push: | |
paths: | |
- 'ftbq_color_check/**' | |
workflow_dispatch: | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
- name: Install dependencies (Windows) | |
run: | | |
pip install pyinstaller | |
pip install -r ftbq_color_check/requirements.txt | |
- name: Build with PyInstaller (Windows) | |
run: | | |
python -m PyInstaller -F -n FTBQ-Color-Check-Windows ftbq_color_check/main.py | |
- name: Upload (Windows) | |
uses: actions/upload-artifact@v4 | |
with: | |
path: dist/FTBQ-Color-Check-Windows.exe | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
- name: Install dependencies (macOS) | |
run: | | |
pip install pyinstaller | |
pip install -r ftbq_color_check/requirements.txt | |
- name: Build with PyInstaller (macOS) | |
run: | | |
python -m PyInstaller -F -n FTBQ-Color-Check-macOS ftbq_color_check/main.py | |
- name: Upload (macOS) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: FTBQ-Color-Check-macOS | |
path: dist/FTBQ-Color-Check-macOS | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
- name: Install dependencies (Linux) | |
run: | | |
pip install pyinstaller | |
pip install -r ftbq_color_check/requirements.txt | |
- name: Build with PyInstaller (Linux) | |
run: | | |
python -m PyInstaller -F -n FTBQ-Color-Check-Linux ftbq_color_check/main.py | |
- name: Upload (Linux) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: FTBQ-Color-Check-Linux | |
path: dist/FTBQ-Color-Check-Linux |