-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 1.04 KB
/
Copy pathMakefile
File metadata and controls
36 lines (28 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.PHONY: all deb rpm apk windows-desktop web web-windows clean help
all: deb rpm apk windows-desktop web web-windows
# 桌面端 Linux
deb:
cargo tauri build --bundles deb
rpm:
cargo tauri build --bundles rpm
# 安卓 APK
apk:
cargo tauri android build --target aarch64
./sign-apk.sh
# Windows 桌面端(需要 cargo-xwin)
windows-desktop:
cd src-tauri && cargo xwin build --release --bin lanchat --target x86_64-pc-windows-msvc
# Web 端 Linux
web:
cd src-tauri && cargo build --release --bin lanchat-web --features web --no-default-features
# Web 端 Windows
web-windows:
cd src-tauri && cargo build --no-default-features --features web --release --target x86_64-pc-windows-gnu
help:
@echo "可用目标:"
@echo " deb - 构建 Linux .deb 包"
@echo " rpm - 构建 Linux .rpm 包"
@echo " apk - 构建并签名 Android APK"
@echo " windows-desktop - 构建 Windows 桌面端 (需要 cargo-xwin)"
@echo " web - 构建 Web 端 (Linux)"
@echo " web-windows - 构建 Web 端 (Windows)"