chore(project): update justfile and envrc

This commit is contained in:
2025-12-16 19:35:58 +08:00
parent b15ffafcd4
commit 047d094341
3 changed files with 17 additions and 12 deletions

2
.envrc
View File

@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
if [ -f ".env" ]; then
export $(dotenvx get --format=shell -f .env)

View File

@@ -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

1
types/probe Symbolic link
View File

@@ -0,0 +1 @@
/home/sikongjueluo/.minecraft/versions/1.20.1-Forge/.probe