-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
justfile
63 lines (48 loc) · 1.59 KB
/
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
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
# use PowerShell instead of sh:
set shell := ["pwsh.exe", "-NoProfile", "-c"]
setup:
just pre-commit
remove-pre-commit:
pre-commit uninstall
pre-commit uninstall --hook-type commit-msg
pre-commit uninstall --hook-type pre-push
pre-commit:
pre-commit install
pre-commit install --hook-type commit-msg
pre-commit install --hook-type pre-push
check:
cargo c
build-all:
just build x86_64
just build i686
just build aarch64
build TARGET:
cargo b -r --target {{ TARGET }}-pc-windows-msvc
beta-build TARGET:
cargo b -r --target {{ TARGET }}-pc-windows-msvc --features beta
clean:
if (Test-Path "release") { rm -r "release" -Force -ErrorAction Ignore }
mkdir "release"
release TARGET:
just build {{ TARGET }}
cp ./target/{{ TARGET }}-pc-windows-msvc/release/sfsu.exe ./release/sfsu.exe
7z a ./release/dl-{{ TARGET }} ./release/sfsu.exe
mv ./release/sfsu.exe ./release/sfsu-{{ TARGET }}.exe
just export-hash {{ TARGET }}
beta-release TARGET:
just beta-build {{ TARGET }}
cp ./target/{{ TARGET }}-pc-windows-msvc/release/sfsu.exe ./release/sfsu.exe
7z a ./release/dl-{{ TARGET }} ./release/sfsu.exe
mv ./release/sfsu.exe ./release/sfsu-{{ TARGET }}.exe
just export-hash {{ TARGET }}
release-all: clean
just release x86_64
just release i686
just release aarch64
beta-release-all: clean
just beta-release x86_64
just beta-release i686
just beta-release aarch64
export-hash TARGET:
python scripts/hash.py './release/dl-{{ TARGET }}.7z'
python scripts/hash.py './release/sfsu-{{ TARGET }}.exe'