build: use cargo vendor --locked
This commit is contained in:
parent
53cfeebe57
commit
0b3d8a9f3f
1 changed files with 2 additions and 2 deletions
4
justfile
4
justfile
|
|
@ -48,7 +48,7 @@ build-debug *args:
|
||||||
|
|
||||||
# Compiles with release profile
|
# Compiles with release profile
|
||||||
build-release *args: (build-debug '--release' args)
|
build-release *args: (build-debug '--release' args)
|
||||||
|
|
||||||
# Compiles applet with release profile
|
# Compiles applet with release profile
|
||||||
build-release-applet *args:
|
build-release-applet *args:
|
||||||
cargo build --package {{applet-name}} --release {{args}}
|
cargo build --package {{applet-name}} --release {{args}}
|
||||||
|
|
@ -111,7 +111,7 @@ uninstall:
|
||||||
vendor:
|
vendor:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
mkdir -p .cargo
|
mkdir -p .cargo
|
||||||
cargo vendor --sync Cargo.toml | head -n -1 > .cargo/config.toml
|
cargo vendor --locked --sync Cargo.toml | head -n -1 > .cargo/config.toml
|
||||||
echo 'directory = "vendor"' >> .cargo/config.toml
|
echo 'directory = "vendor"' >> .cargo/config.toml
|
||||||
echo >> .cargo/config.toml
|
echo >> .cargo/config.toml
|
||||||
echo '[env]' >> .cargo/config.toml
|
echo '[env]' >> .cargo/config.toml
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue