-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.justfile
37 lines (31 loc) · 885 Bytes
/
.justfile
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
run *OPTIONS:
cargo run {{OPTIONS}}
web *OPTIONS:
trunk serve --open {{OPTIONS}}
publish-web *OPTIONS:
trunk --config Trunk.itch-io.toml build {{OPTIONS}}
butler push dist kuviman/linksider:html5
publish-native *OPTIONS:
#!/usr/bin/env sh
folder=debug
for opt in {{OPTIONS}}; do
if [[ $opt = "--release" ]]; then
folder=release
fi
done
cargo build {{OPTIONS}}
rm -rf dist || true
mkdir dist
cp target/$folder/linksider.exe dist/
cp -r assets dist/
butler push dist kuviman/linksider:windows
publish *OPTIONS:
just publish-web {{OPTIONS}}
just publish-native {{OPTIONS}}
clean:
cargo clean
prepare *OPTIONS:
cargo check {{OPTIONS}}
cargo check --target wasm32-unknown-unknown {{OPTIONS}}
cargo build {{OPTIONS}}
cargo build --target wasm32-unknown-unknown {{OPTIONS}}