forked from taggrx/beacon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (31 loc) · 869 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
32
33
34
35
36
37
38
39
40
start:
dfx start --background -qqqq
mainnet_deploy:
make build
dfx --identity prod deploy --network ic
local_deploy:
FEATURES=dev dfx deploy
local_reinstall:
make fe
FEATURES=dev dfx deploy --mode=reinstall beacon -y
build:
NODE_ENV=production make fe
./build.sh beacon
test:
cargo clippy --tests --benches -- -D clippy::all
cargo test
fe:
npm run build --quiet
release:
docker build -t beacon .
mkdir -p $(shell pwd)/release-artifacts
docker run --rm -v $(shell pwd)/release-artifacts:/target/wasm32-unknown-unknown/release beacon
make hashes
podman_release:
podman build -t beacon .
mkdir -p $(shell pwd)/release-artifacts
podman run --rm -v $(shell pwd)/release-artifacts:/target/wasm32-unknown-unknown/release beacon
make hashes
hashes:
git rev-parse HEAD
shasum -a 256 $(shell pwd)/release-artifacts/beacon.wasm.gz | cut -d ' ' -f 1