-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
MakeFile
64 lines (44 loc) · 1.15 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
run_web:
cd frontend && yarn dev
run_desktop:
cargo tauri dev
build:
cargo tauri build
kill:
kill -INT $(lsof -t -i :8080)
# for window netstat -ano | findstr :8080
kill_dfx:
killall dfx replica
update:
cargo update
install_cli:
cargo install tauri-cli
clean:
cargo clean
get_principal:
dfx identity get-principal
create_token:
dfx canister create token
dfx_owner:
OWNER_PUBLIC_KEY="principal \"$( \dfx identity get-principal )\""
get_dfx_balance:
dfx canister call token balance "( $OWNER_PUBLIC_KEY )"
deploy:
# make sure to run dfx start in order to start the simulated blockchain locally
# make sure to have Cargo.lock files so the dfx can install from it because dfx does not install from Cargo.toml
#dfx deploy registrar --with-cycles 10000000000000
#def start --backendyes
dfx deploy
deploy_internet:
dfx deploy internet_identity
watch_fe:
cargo watch -w "./frontend" -s "cd frontend; yarn wasm ; yarn run build ; cd ../; dfx deploy "
deploy_be:
dfx deploy backend
watch_be:
cargo watch -w "./canisters" -s "dfx deploy"
reset_cargo:
rm -rf ~/.cargo/registry/index/*
rm -rf ~/.cargo/.package-cache
cargo clean
cargo update