fix: Dokumente-Ordner sprachunabhaengig aufloesen
- neues tools/_paths.sh loest den Dokumente-Ordner zur Laufzeit auf: xdg-user-dir DOCUMENTS, sonst ~/Dokumente, sonst ~/Documents - sync_assets.sh und rotoscope.sh nutzen workbench_dir statt $HOME/Documents/workbench_rinkplanner - promote_rotoscope.py und blender/rotoscope.py loesen den Workbench-Pfad genauso auf und bevorzugen weiterhin RINKPLANNER_WORKBENCH - Doku auf den tatsaechlichen Pfad ~/Dokumente/workbench_rinkplanner umgestellt
This commit is contained in:
parent
c3677bf3e1
commit
0ac0624ba2
9 changed files with 108 additions and 14 deletions
|
|
@ -11,9 +11,11 @@
|
|||
set -euo pipefail
|
||||
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
# shellcheck source=tools/_paths.sh
|
||||
source "$REPO_ROOT/tools/_paths.sh"
|
||||
PROJECT_DIR="$REPO_ROOT/rinkplanner"
|
||||
MANIFEST="$PROJECT_DIR/assets/asset_manifest.json"
|
||||
WORKBENCH="${RINKPLANNER_WORKBENCH:-$HOME/Documents/workbench_rinkplanner}"
|
||||
WORKBENCH="$(workbench_dir)"
|
||||
GODOT="${GODOT:-/opt/godot/Godot_v4.7.2-stable_linux.x86_64}"
|
||||
if [[ ! -x "$GODOT" && -x "/Applications/Godot.app/Contents/MacOS/Godot" ]]; then
|
||||
GODOT="/Applications/Godot.app/Contents/MacOS/Godot"
|
||||
|
|
@ -51,7 +53,8 @@ Aufruf: tools/sync_assets.sh [--check|--sync|--publish] [--force]
|
|||
|
||||
Umgebung:
|
||||
RINKPLANNER_WORKBENCH Pfad zum Workbench-Archiv
|
||||
(Standard: ~/Documents/workbench_rinkplanner)
|
||||
(Standard: <Dokumente>/workbench_rinkplanner,
|
||||
z. B. ~/Dokumente/workbench_rinkplanner)
|
||||
RINKPLANNER_CREDENTIALS Pfad zur FTP-Konfiguration
|
||||
(Standard: <repo>/docs/credentials.txt)
|
||||
RINKPLANNER_FTP_HOST FTP-Host (überschreibt FTP_URL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue