This repository has been archived by the owner on Jan 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
69 lines (48 loc) · 1.95 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
.DEFAULT_GOAL := dyn
VER := $(shell eval cargo pkgid | sed 's/^.*Griffsort@//')
fmt:
cargo +nightly fmt
dyn:
cargo run --features "bevy/dynamic" client
watch:
cargo-watch -c --exec 'run --features "bevy/dynamic" client'
release || r:
cargo run --release client
tracy || t:
cargo run --features "bevy/dynamic, bevy/trace_tracy" client
server || s:
cargo run --features "bevy/dynamic" server
server-tracy || st:
cargo run --features "bevy/dynamic, bevy/trace_tracy" server
classic || c:
cargo run client
build || b:
cargo build --release
publish:
cargo build --release
cargo build --target=x86_64-pc-windows-gnu --release
mkdir -p package/$(VER)/windows package/$(VER)/linux package/$(VER)/compressed package/$(VER)/windows/scripts package/$(VER)/linux/scripts
cp target/x86_64-pc-windows-gnu/release/Griffsort.exe package/$(VER)/windows
cp -r ./assets package/$(VER)/windows
cp -r ./config package/$(VER)/windows
cp -r ./build-assets/windows/* package/$(VER)/windows/
cd package/$(VER)/windows; zip -r ../compressed/griffsort-$(VER)-win.zip ./
cp target/release/Griffsort package/$(VER)/linux
cp -r ./assets package/$(VER)/linux
cp -r ./config package/$(VER)/linux
cp -r ./build-assets/linux/* package/$(VER)/linux/scripts/
cd package/$(VER)/linux; zip -r ../compressed/griffsort-$(VER)-linux.zip ./
gh release create $(VER) package/$(VER)/compressed/*
draft:
cargo build --release
cargo build --target=x86_64-pc-windows-gnu --release
mkdir -p package/$(VER)/windows package/$(VER)/linux package/$(VER)/compressed package/$(VER)/linux/scripts
cp target/release/Griffsort package/$(VER)/linux
cp -r ./build-assets/linux/* package/$(VER)/linux/scripts/
cp -r ./assets package/$(VER)/linux
cp -r ./config package/$(VER)/linux
cp target/x86_64-pc-windows-gnu/release/Griffsort.exe package/$(VER)/windows
cp -r ./build-assets/windows/* package/$(VER)/windows/
cp -r ./assets package/$(VER)/windows
cp -r ./config package/$(VER)/windows
clear: