-
Notifications
You must be signed in to change notification settings - Fork 38
/
Makefile
46 lines (33 loc) · 1.22 KB
/
Makefile
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
37
38
39
40
41
42
43
44
45
46
bootstrap: bootstrap-web bootstrap-server
bootstrap-web:
cd web && pnpm install --frozen-lockfile
bootstrap-server:
# cd server && cargo check
run-server:
cd server && cargo run
run-web:
cd web && pnpm start
build-server:
cd server && HOMEBOX_ENV=production cargo build --locked --release
build-web:
cd web && pnpm run build
build: build-web build-server
build-arch:
rustup target add $(TARGET)
rustup toolchain install stable-$(TARGET)
cd server && HOMEBOX_ENV=production cargo build --locked --release --target $(TARGET)
mkdir -p build/arch
cp server/target/$(TARGET)/release/homebox build/arch/homebox-$(FILE)
pack-arch:
bash ./script/pack-arch.sh $(TAG)
build-all-arch: build-darwin build-windows build-linux build-android
build-darwin:
make build-arch TARGET=aarch64-apple-darwin FILE=darwin-arm64
make build-arch TARGET=x86_64-apple-darwin FILE=darwin-amd64
build-windows:
make build-arch TARGET=x86_64-pc-windows-msvc FILE=windows-amd64.exe
make build-arch TARGET=i686-pc-windows-msvc FILE=windows-386.exe
build-linux:
make build-arch TARGET=x86_64-unknown-linux-gnu FILE=linux-amd64
make build-arch TARGET=aarch64-unknown-linux-gnu FILE=linux-arm64
make build-arch TARGET=i686-unknown-linux-gnu FILE=linux-386