Updated justfile, added script to set shell path, and fixed Cargo.toml version issue.

This commit is contained in:
ajasibley 2023-05-25 01:19:57 -07:00
parent 875b385d79
commit 0f4c13fc43
4 changed files with 21 additions and 2 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "nexus"
version = "0.0.0"
edition = "2033"
edition = "2021"
[dependencies]
c2pa = "0.21.0"

View file

@ -4,18 +4,21 @@ scripts_dir := "scripts"
install-rust:
@if ! command -v rustc &> /dev/null; then \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh; \
. {{scripts_dir}}/update_path.sh; \
fi
# Check if wasm32-unknown-unknown target is installed, if not install it
install-wasm-target:
@if ! rustup target list --installed | grep -q "wasm32-unknown-unknown"; then \
rustup target add wasm32-unknown-unknown; \
. {{scripts_dir}}/update_path.sh; \
fi
# Check if OpenSSL 1.1 is installed
install-openssl:
@if ! (command -v openssl &> /dev/null && openssl version | grep -q "OpenSSL 1.1"); then \
. {{scripts_dir}}/install_openssl.sh; \
. {{scripts_dir}}/update_path.sh; \
fi
# Check if cosmo is installed, if not install it

17
scripts/update_source.sh Normal file
View 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

View file

@ -6,7 +6,6 @@ pkgs.mkShell {
cargo
tree
poetry
openssl_1_1
vespa-cli
];
shellHook = ''