build: add artifact collection and Arch Linux packaging scripts
Introduce scripts to collect Tauri build artifacts across platforms and generate a pacman package for Arch Linux. Update .gitignore to exclude the releases directory and reorder existing entries.
This commit is contained in:
@@ -118,6 +118,46 @@ pnpm tauri build
|
||||
|
||||
# Tauri Android
|
||||
pnpm tauri android build
|
||||
|
||||
# Pacman 包(Arch Linux,需先执行 pnpm tauri build)
|
||||
./scripts/pacman-pkg.sh
|
||||
```
|
||||
|
||||
### 4. 收集发布产物
|
||||
|
||||
将各平台构建产物统一收集到 `releases/<version>/`,并规范命名:
|
||||
|
||||
```bash
|
||||
# Linux / macOS
|
||||
./scripts/collect-artifacts.sh
|
||||
|
||||
# Windows
|
||||
scripts\collect-artifacts.cmd
|
||||
```
|
||||
|
||||
脚本会**跳过不存在的构建产物**,因此可以放心运行——你当前平台没构建的产物会被忽略。覆盖范围:
|
||||
|
||||
| 平台 | 产物 |
|
||||
|------|------|
|
||||
| Web | `.tar.gz` `.zip` |
|
||||
| Linux | `.AppImage` `.deb` `.rpm` `.pkg.tar.zst` |
|
||||
| Windows | `.msi` `.exe` |
|
||||
| macOS | `.dmg` |
|
||||
| Android | `.apk`(arm64 / x86_64 / universal) |
|
||||
|
||||
输出示例:
|
||||
|
||||
```
|
||||
releases/0.1.0/
|
||||
├── bookmgr-client-0.1.0-android-arm64.apk
|
||||
├── bookmgr-client-0.1.0-android-universal.apk
|
||||
├── bookmgr-client-0.1.0-android-x86_64.apk
|
||||
├── bookmgr-client-0.1.0-linux-amd64.AppImage
|
||||
├── bookmgr-client-0.1.0-linux-amd64.deb
|
||||
├── bookmgr-client-0.1.0-linux-x86_64.pkg.tar.zst
|
||||
├── bookmgr-client-0.1.0-linux-x86_64.rpm
|
||||
├── bookmgr-client-0.1.0-web.tar.gz
|
||||
└── bookmgr-client-0.1.0-web.zip
|
||||
```
|
||||
|
||||
## 项目结构
|
||||
|
||||
Reference in New Issue
Block a user