-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (25 loc) · 812 Bytes
/
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
install:
cargo install --path .
gen:
icongen --src Icon-1024.png --dst icon
gen_custom:
icongen --src Icon-1024.png --dst icon --icons icons.yml
# make build_macos version=0.1.0
build_macos:
cargo build --release --target x86_64-apple-darwin
cargo build --release --target aarch64-apple-darwin
make zip_macos_x86_64 version=$(version)
make zip_macos_arm64 version=$(version)
# make zip_macos_x86_64 version=0.1.0
zip_macos_x86_64:
cd target/x86_64-apple-darwin/release && \
tar -zcvf $(version)_Darwin_x86_64.tar.gz icongen && \
cd ../../../
# make zip_macos_arm64 version=0.1.0
zip_macos_arm64:
cd target/aarch64-apple-darwin/release && \
tar -zcvf $(version)_Darwin_arm64.tar.gz icongen && \
cd ../../../
# make build_macos version=0.1.0
build_macos_release:
make build_macos version=0.1.0