-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
53 lines (40 loc) · 1.14 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
SHELL := /bin/bash
BACKEND_PRINCIPAL = principal \"$(shell dfx canister id backend)\"
scripts-permissions:
chmod 774 scripts/
download-ledger:
scripts/download-ledger.sh
download-identity:
scripts/download-identity.sh
nft:
dfx build nft
dfx canister install nft --mode=upgrade
backend:
dfx build backend
dfx canister install backend --mode=upgrade
test:
dfx build test
dfx canister install test --mode=upgrade
frontend:
dfx build frontend
dfx canister install frontend --mode=upgrade
# - call `dfx identity new minter` before running this command
# - set `"candid": "ledger.private.did"` in .dfx.json before running this command
# - set `"candid": "ledger.public.did"` in .dfx.json after running this command
ledger:
scripts/deploy-ledger.sh
identity:
scripts/deploy-identity.sh
create:
dfx canister create --no-wallet --all
deploy:
dfx build
dfx canister install backend
dfx canister install nft
dfx canister install frontend
dfx canister call nft init "(${BACKEND_PRINCIPAL})"
upgrade:
dfx build
dfx canister install backend --mode=upgrade
dfx canister install nft --mode=upgrade
dfx canister install frontend --mode=upgrade