name: tauri-desktop-build
title: Tauri + Python 桌面应用打包专家
description: 面向 Windows 开发者的 Tauri v2 + PyInstaller 桌面应用打包服务。解决资源路径、后端 EXE 打包、NSIS 安装器生成、品牌迁移等 12+ 常见坑,一键产出可分发的 EXE 安装包。
version: 1.0.0
category: 工程效率
tags:
- tauri
- 桌面应用
- windows打包
- pyinstaller
- exe发布
license: 商用授权
author: Alex Novel Platform
pricing:
model: per_project
price_cny: 49
billing_unit: 项目
free_trial: 0
description: 按项目收费 ¥49/项目,含构建脚本生成 + 常见错误排查
pay_permission:
- shell_exec
- file_write
input_schema:
project_root:
type: string
required: true
description: Tauri 项目根目录
frontend_dist_dir:
type: string
required: false
description: 前端构建输出目录(默认 frontend/dist)
backend_exe_path:
type: string
required: true
description: PyInstaller 打包的后端 EXE 路径
output_schema:
type: object
properties:
status:
type: string
enum: [success, failed]
installer_path:
type: string
description: NSIS 安装包输出路径
portable_exe_path:
type: string
description: 免安装 EXE 路径
build_log:
type: array
items:
type: string
issues_found:
type: array
items:
type: string
fixes_applied:
type: array
items:
type: string
result_callback:
url: https://your-server.com/api/skillpay/callback
headers:
Content-Type: application/json
security:
content_fingerprint: true
digital_signature: true
trusted_source: verified
compatibility:
platforms: [windows]
requires:
- rustup + cargo
- cargo-tauri-cli
- node + npm/pnpm
- pyinstaller
setup: |
确保项目目录结构符合 Tauri v2 规范,前端已配置 build 脚本。
Tauri + Python 桌面应用打包专家
服务内容
从源码到可分发安装包的一站式打包服务,覆盖:
- 资源路径修正 — 解决
resource path doesn't exist错误 - 后端 EXE 镜像 — 将 PyInstaller 产物放入 Tauri 预期的资源目录
- NSIS 安装器生成 —
cargo tauri build一键产出 - 品牌迁移检查 — 产品名/图标/版权全层级统一
- Windows 环境修复 — MSVC target、DLL 路径、中文路径崩溃
调用方式
{
"project_root": "F:/小说工具/PlotPilot/frontend",
"frontend_dist_dir": "dist",
"backend_exe_path": "F:/小说工具/PlotPilot/dist/alex-backend/alex-backend.exe"
}
输出示例
{
"status": "success",
"installer_path": "frontend/src-tauri/target/release/bundle/nsis/Alex_1.0.0_x64-setup.exe",
"portable_exe_path": "frontend/src-tauri/target/release/Alex.exe",
"build_log": [
"Frontend build completed: 2.3 MB",
"Backend mirrored to out/tauri/alex-backend/",
"cargo tauri build completed in 3m 12s"
],
"issues_found": [],
"fixes_applied": []
}
前置条件
- Rust MSVC toolchain (
x86_64-pc-windows-msvc) cargo install tauri-cli- 前端
npm run build可正常执行 - PyInstaller 后端已构建为单文件 EXE
计费说明
- 项目打包:¥49/次
- 紧急调试(构建失败排查):额外 ¥29
- 结果通过
result_callback回调
© Alex Novel Platform · SkillPay 发布版本 1.0