harmonize build scripts
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -13,13 +13,13 @@ jobs:
|
||||
include:
|
||||
- os: macos-latest
|
||||
label: macOS
|
||||
build_cmd: bash scripts/build-mac.sh
|
||||
build_cmd: npm run build:mac
|
||||
artifact_path: desktop-dist/tono.dmg
|
||||
artifact_name: tono-macos
|
||||
|
||||
- os: ubuntu-latest
|
||||
label: Linux
|
||||
build_cmd: bash scripts/build-linux.sh
|
||||
build_cmd: npm run build:linux
|
||||
artifact_path: desktop-dist/tono-linux.tar.gz
|
||||
artifact_name: tono-linux
|
||||
|
||||
@@ -45,10 +45,12 @@ jobs:
|
||||
node-version: "20"
|
||||
cache: npm
|
||||
|
||||
# Build scripts call `uv pip install` for Python deps
|
||||
- name: Install uv
|
||||
run: pip install uv
|
||||
|
||||
- name: Create venv
|
||||
run: uv venv --python 3.13
|
||||
|
||||
# Linux: pywebview needs webkit2gtk headers to import during PyInstaller collection
|
||||
- name: Install Linux system dependencies
|
||||
if: runner.os == 'Linux'
|
||||
|
||||
@@ -15,7 +15,6 @@ done
|
||||
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
cd "$REPO_ROOT"
|
||||
|
||||
uv venv --python 3.13
|
||||
source .venv/bin/activate
|
||||
|
||||
if [ -d ".venv/bin" ]; then
|
||||
|
||||
@@ -15,7 +15,6 @@ done
|
||||
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
cd "$REPO_ROOT"
|
||||
|
||||
uv venv --python 3.13
|
||||
source .venv/bin/activate
|
||||
|
||||
if [ -d ".venv/bin" ]; then
|
||||
|
||||
@@ -30,7 +30,6 @@ function Assert-LastExitCode {
|
||||
$repoRoot = Split-Path -Parent $PSScriptRoot
|
||||
Set-Location $repoRoot
|
||||
|
||||
uv venv --python 3.13
|
||||
./.venv/Scripts/Activate
|
||||
|
||||
$pythonExe = if (Test-Path ".\.venv\Scripts\python.exe") {
|
||||
|
||||
Reference in New Issue
Block a user