Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 29 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,21 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

# ── Python (for Nuitka sidecar) ───────────────────────────
- name: Set up Python 3.12
uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: "3.12"
python-version: "3.14"
architecture: "x64"

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install -r requirements_win64.txt
python -m pip install nuitka
run: uv sync --frozen

# ── Bundle Python sidecar with Nuitka ─────────────────────
- name: Build Nuitka sidecar
run: python scripts/bundle_sidecar.py
run: uv run scripts/bundle_sidecar.py

# ── Node.js + pnpm (for Vue frontend) ─────────────────────
- name: Set up Node.js 22
Expand Down Expand Up @@ -69,6 +68,19 @@ jobs:
restore-keys: ${{ runner.os }}-cargo-

# ── Build Tauri installer ─────────────────────────────────
- name: Inject version from Git tag
shell: bash
run: |
VERSION="${GITHUB_REF_NAME#v}"
echo "Updating app version to $VERSION"
node -e "
const fs = require('fs');
const file = 'src-tauri/tauri.conf.json';
const data = JSON.parse(fs.readFileSync(file));
data.version = '$VERSION';
fs.writeFileSync(file, JSON.stringify(data, null, 2));
"

- name: Build Tauri app
env:
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
Expand All @@ -83,10 +95,17 @@ jobs:
echo "| Item | Value |" >> $GITHUB_STEP_SUMMARY
echo "|------|-------|" >> $GITHUB_STEP_SUMMARY
echo "| Tag | \`${GITHUB_REF_NAME}\` |" >> $GITHUB_STEP_SUMMARY
echo "| Python | 3.12 (x64) |" >> $GITHUB_STEP_SUMMARY
echo "| Python | 3.14 (x64) |" >> $GITHUB_STEP_SUMMARY
echo "| Node | 22 |" >> $GITHUB_STEP_SUMMARY
echo "| Rust | stable |" >> $GITHUB_STEP_SUMMARY

- name: Rename installer
shell: bash
working-directory: src-tauri/target/release/bundle/nsis
run: |
mv *.exe RoK-Tracker-Suite-setup.exe
mv *.sig RoK-Tracker-Suite-setup.exe.sig

# ── Upload artifacts ──────────────────────────────────────
- name: Upload NSIS installer
uses: actions/upload-artifact@v4
Expand Down
22 changes: 12 additions & 10 deletions .github/workflows/test_bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,21 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

# ── Python (for Nuitka sidecar) ───────────────────────────
- name: Set up Python 3.12
uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: "3.12"
python-version: "3.14"
architecture: "x64"

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install -r requirements_win64.txt
python -m pip install nuitka
run: uv sync --frozen

# ── Bundle Python sidecar with Nuitka ─────────────────────
- name: Build Nuitka sidecar
run: python scripts/bundle_sidecar.py
run: uv run scripts/bundle_sidecar.py

# ── Node.js + pnpm (for Vue frontend) ─────────────────────
- name: Set up Node.js 22
Expand Down Expand Up @@ -61,6 +60,9 @@ jobs:

# ── Build Tauri installer ─────────────────────────────────
- name: Build Tauri app
env:
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
run: ./gui_frontend/node_modules/.bin/tauri build

- name: Summarize build
Expand All @@ -70,7 +72,7 @@ jobs:
echo "" >> $GITHUB_STEP_SUMMARY
echo "| Item | Value |" >> $GITHUB_STEP_SUMMARY
echo "|------|-------|" >> $GITHUB_STEP_SUMMARY
echo "| Python | 3.12 (x64) |" >> $GITHUB_STEP_SUMMARY
echo "| Python | 3.13 (x64) |" >> $GITHUB_STEP_SUMMARY
echo "| Node | 22 |" >> $GITHUB_STEP_SUMMARY
echo "| Rust | stable |" >> $GITHUB_STEP_SUMMARY

Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.13.1
3.14
Loading
Loading