Skip to content

Commit c3fab11

Browse files
committed
fix(release): 彻底修复 CI 路径偏移导致的发版瘫痪、优化包体积,并修复初次启动引导界面冲突 (0.8.54)
1 parent 4e16baf commit c3fab11

11 files changed

Lines changed: 36 additions & 33 deletions

File tree

.github/workflows/build-electron.yml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -78,27 +78,26 @@ jobs:
7878
$Content | Set-Content $PthFile -Encoding UTF8
7979
8080
# 3. Install Dependencies via uv
81-
echo "Installing dependencies..."
82-
$SitePackages = "$Dest/Lib/site-packages"
83-
New-Item -ItemType Directory -Force -Path $SitePackages
84-
85-
# Use pip to install uv first
86-
pip install uv
87-
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
88-
89-
# Install torch first (CPU only)
90-
uv pip install --target $SitePackages torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --system
91-
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
92-
93-
# Install dependencies from pyproject.toml
94-
# Note: uv pip install . needs to run where pyproject.toml is
95-
cd PeroCore-Electron/backend
96-
uv pip install --target $SitePackages . --system
97-
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
81+
echo "Installing dependencies..."
82+
$SitePackages = (New-Item -ItemType Directory -Force -Path "$Dest/Lib/site-packages").FullName
83+
echo "Site-packages absolute path: $SitePackages"
84+
85+
# Use pip to install uv first
86+
pip install uv
87+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
88+
89+
# Install torch first (CPU only)
90+
uv pip install --target $SitePackages torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --system
91+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
92+
93+
# Install dependencies from pyproject.toml
94+
Push-Location PeroCore-Electron/backend
95+
uv pip install --target $SitePackages . --system
96+
if ($LASTEXITCODE -ne 0) { Pop-Location; exit $LASTEXITCODE }
97+
Pop-Location
9898
9999
# Clean up
100-
cd ../..
101-
Remove-Item $ZipPath
100+
Remove-Item $ZipPath
102101
103102
- name: Setup Rust
104103
uses: dtolnay/rust-toolchain@stable

backend/nit_core/interpreter/rust_binding/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "nit_rust_runtime"
3-
version = "0.8.53"
3+
version = "0.8.54"
44
edition = "2021"
55

66
[lib]

backend/nit_core/interpreter/rust_binding/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "maturin"
44

55
[project]
66
name = "nit_rust_runtime"
7-
version = "0.8.53"
7+
version = "0.8.54"
88
description = "NIT Rust Runtime"
99
requires-python = ">=3.8"
1010
dependencies = []

backend/nit_core/nit_terminal_auditor/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "nit_terminal_auditor"
3-
version = "0.8.53"
3+
version = "0.8.54"
44
edition = "2021"
55

66
[lib]

backend/nit_core/tools/work/CodeSearcher/src/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "CodeSearcher"
3-
version = "0.8.53"
3+
version = "0.8.54"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

backend/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pero-backend"
3-
version = "0.8.53"
3+
version = "0.8.54"
44
description = "萌动链接:PeroperoChat! 后端服务"
55
requires-python = ">=3.10,<3.11"
66
dependencies = [

backend/vision_core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pero_vision_core"
3-
version = "0.8.53"
3+
version = "0.8.54"
44
edition = "2021"
55

66
[lib]

backend/vision_core/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "maturin"
44

55
[project]
66
name = "pero_vision_core"
7-
version = "0.8.53"
7+
version = "0.8.54"
88
description = "High-performance computer vision core for Pero using Rust"
99
license = { text = "Apache-2.0" }
1010
authors = [

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "peropero-chat",
33
"private": true,
4-
"version": "0.8.53",
4+
"version": "0.8.54",
55
"description": "萌动链接:PeroperoChat!- 一个充满活力的 3D 桌面宠物应用",
66
"author": "YoKONCy",
77
"license": "Apache-2.0",
@@ -180,7 +180,14 @@
180180
"!**/Cargo.toml",
181181
"!**/Cargo.lock",
182182
"!**/*.pdb",
183-
"!**/nit_core/plugins/social_adapter/NapCat"
183+
"!**/nit_core/plugins/social_adapter/NapCat",
184+
"!**/tests",
185+
"!**/*.egg-info",
186+
"!**/build",
187+
"!**/.python-version",
188+
"!**/uv.lock",
189+
"!**/ruff_out.*",
190+
"!**/PeroCore-Electron"
184191
]
185192
},
186193
{

scripts/sync-version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const envPath = path.join(__dirname, '../.env')
55
const pkgPath = path.join(__dirname, '../package.json')
66
const pyTomlPath = path.join(__dirname, '../backend/pyproject.toml')
77

8-
let version = '0.8.53' // Default fallback
8+
let version = '0.8.54' // Default fallback
99

1010
// 1. Read version from .env
1111
if (fs.existsSync(envPath)) {

0 commit comments

Comments
 (0)