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