diff --git a/.envrc b/.envrc index 08dee10..e7f491e 100644 --- a/.envrc +++ b/.envrc @@ -1,9 +1,9 @@ -#!/bin/sh - -if [ -f ".env" ]; then - export $(dotenvx get --format=shell -f .env) -fi - -if [ -f ".env.local" ]; then - export $(dotenvx get --format=shell -f .env.local) -fi +#!/bin/bash + +if [ -f ".env" ]; then + export $(dotenvx get --format=shell -f .env) +fi + +if [ -f ".env.local" ]; then + export $(dotenvx get --format=shell -f .env.local) +fi diff --git a/.justfile b/.justfile index 348635d..d175b84 100644 --- a/.justfile +++ b/.justfile @@ -1,8 +1,12 @@ +log_dir := if os() == "linux" { "$LOG_DIR" } else { "$(cygpath -u $LOG_DIR)/" } +kjs_dir := if os() == "linux" { "$KJS_DIR" } else { "$(cygpath -u $KJS_DIR)/" } +pjs_dir := if os() == "linux" { "$PJS_DIR" } else { "$(cygpath -u $PJS_DIR)/" } + sync-js: - rsync -av --delete -r --exclude=config --exclude=probe --exclude=*.txt ./src/ "$(cygpath -u $DST_KJS_DIR)/" + rsync -av --delete -r --exclude=config --exclude=probe --exclude=*.txt ./src/ {{ kjs_dir }} sync-logs: - rsync -av --delete -r "$(cygpath -u $DST_LOG_DIR)/" ./logs/ + ln -s {{ log_dir }} ./logs sync-types: - rsync -av --delete -r "$(cygpath -u $DST_KJS_DIR)/probe" ./types/probe + ln -s {{ pjs_dir }} ./types/probe diff --git a/types/probe b/types/probe new file mode 120000 index 0000000..a477bfd --- /dev/null +++ b/types/probe @@ -0,0 +1 @@ +/home/sikongjueluo/.minecraft/versions/1.20.1-Forge/.probe \ No newline at end of file