-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmise.toml
More file actions
43 lines (37 loc) · 1.05 KB
/
mise.toml
File metadata and controls
43 lines (37 loc) · 1.05 KB
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
[tasks.build-fast]
shell = 'powershell -Command'
run = '''
cargo build --profile release-fast
'''
[tasks.build]
shell = 'powershell -Command'
run = '''
cargo build --release
'''
[tasks.kill]
shell = "powershell -Command"
run = 'if (Get-Process winkeylock -ErrorAction SilentlyContinue) { taskkill /IM winkeylock.exe /F }'
[tasks.build-run]
depends = ["kill", "build"]
run = 'target\release\winkeylock.exe'
[tasks.tag]
shell = "powershell -Command"
run = '''
$env:VERSION=cargo get package.version
git tag --delete v$env:VERSION
git tag -a v$env:VERSION -m v$env:VERSION
'''
[tasks.gh-release]
shell = "powershell -Command"
run = '''
$env:VERSION=cargo get package.version
git push origin v$env:VERSION
gh release create v$env:VERSION target/release-fast/winkeylock.exe --generate-notes
'''
depends = ["tag", "build-fast"]
[tasks.remove-unused]
run = '''
cargo install cargo-shear && cargo shear && cargo install cargo-features-manager && cargo features prune
'''
# also cargo install cargo-machete && cargo machete
# or cargo install cargo-udeps --locked && cargo udeps