-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
33 lines (27 loc) · 1.05 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
test:
echo "hello"
build_mac_arm:
go build .
mkdir -p ./dist/mac_arm
mv ./conflux-toolkit ./dist/mac_arm/
cp -r ./scripts/batch_transfer/* ./dist/mac_arm/
build_mac_amd:
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build
mkdir -p ./dist/mac_amd
mv ./conflux-toolkit ./dist/mac_amd/
cp -r ./scripts/batch_transfer/* ./dist/mac_amd/
build_windows:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build
mkdir -p ./dist/windows
mv ./conflux-toolkit.exe ./dist/windows/conflux-toolkit
cp -r ./scripts/batch_transfer/* ./dist/windows/
build:
make build_mac_arm
make build_mac_amd
make build_windows
zip:
make build
mkdir -p ./dist/zip
cd ./dist/mac_amd && zip -r ./batch-transfer-mac.zip ./* -x *.zip -x *.txt -x "keystore/*" && mv batch-transfer-mac.zip ../zip/ && cd ../../
cd ./dist/windows && zip -r -l ./batch-transfer-windows.zip ./* -x *.zip -x *.txt -x "keystore/*" && mv batch-transfer-windows.zip ../zip/ && cd ../..
# cd ./dist/mac && zip -r ./batch-transfer-mac.zip ./* -x *.zip -x *.txt -x "keystore/*" && mv batch-transfer-mac.zip ../zip/ && cd ../../