Updated justfile, added script to set shell path, and fixed Cargo.toml version issue.
This commit is contained in:
parent
875b385d79
commit
0f4c13fc43
4 changed files with 21 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "nexus"
|
name = "nexus"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
edition = "2033"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
c2pa = "0.21.0"
|
c2pa = "0.21.0"
|
||||||
|
|
3
justfile
3
justfile
|
@ -4,18 +4,21 @@ scripts_dir := "scripts"
|
||||||
install-rust:
|
install-rust:
|
||||||
@if ! command -v rustc &> /dev/null; then \
|
@if ! command -v rustc &> /dev/null; then \
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh; \
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh; \
|
||||||
|
. {{scripts_dir}}/update_path.sh; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if wasm32-unknown-unknown target is installed, if not install it
|
# Check if wasm32-unknown-unknown target is installed, if not install it
|
||||||
install-wasm-target:
|
install-wasm-target:
|
||||||
@if ! rustup target list --installed | grep -q "wasm32-unknown-unknown"; then \
|
@if ! rustup target list --installed | grep -q "wasm32-unknown-unknown"; then \
|
||||||
rustup target add wasm32-unknown-unknown; \
|
rustup target add wasm32-unknown-unknown; \
|
||||||
|
. {{scripts_dir}}/update_path.sh; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if OpenSSL 1.1 is installed
|
# Check if OpenSSL 1.1 is installed
|
||||||
install-openssl:
|
install-openssl:
|
||||||
@if ! (command -v openssl &> /dev/null && openssl version | grep -q "OpenSSL 1.1"); then \
|
@if ! (command -v openssl &> /dev/null && openssl version | grep -q "OpenSSL 1.1"); then \
|
||||||
. {{scripts_dir}}/install_openssl.sh; \
|
. {{scripts_dir}}/install_openssl.sh; \
|
||||||
|
. {{scripts_dir}}/update_path.sh; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if cosmo is installed, if not install it
|
# Check if cosmo is installed, if not install it
|
||||||
|
|
17
scripts/update_source.sh
Normal file
17
scripts/update_source.sh
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Detect the current shell
|
||||||
|
current_shell=$(basename "$SHELL")
|
||||||
|
|
||||||
|
# Run the appropriate command based on the detected shell
|
||||||
|
case $current_shell in
|
||||||
|
bash)"
|
||||||
|
source ~/.bashrc || source ~/.bash_profile
|
||||||
|
;;
|
||||||
|
zsh)
|
||||||
|
source ~/.zshrc
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
|
@ -6,7 +6,6 @@ pkgs.mkShell {
|
||||||
cargo
|
cargo
|
||||||
tree
|
tree
|
||||||
poetry
|
poetry
|
||||||
openssl_1_1
|
|
||||||
vespa-cli
|
vespa-cli
|
||||||
];
|
];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue