diff --git a/build-plugin.sh b/build-plugin.sh index 7ff10d0..925847f 100755 --- a/build-plugin.sh +++ b/build-plugin.sh @@ -2,7 +2,7 @@ set -eu PLUGIN="u-navigator" -VERSION="2026.06.23.r005" +VERSION="2026.06.23.r006" PKG_DIR="packages" WORK_DIR=".plugin-build" PKG_NAME="${PLUGIN}-${VERSION}.tgz" @@ -13,6 +13,7 @@ mkdir -p "$WORK_DIR/usr/local/emhttp/plugins/${PLUGIN}/assets" "$PKG_DIR" cp -R plugin-root/usr "$WORK_DIR/" cp server/public/app.js "$WORK_DIR/usr/local/emhttp/plugins/${PLUGIN}/assets/app.js" cp server/public/styles.css "$WORK_DIR/usr/local/emhttp/plugins/${PLUGIN}/assets/styles.css" +perl -0pi -e "s/__VERSION__/${VERSION}/g" "$WORK_DIR/usr/local/emhttp/plugins/${PLUGIN}/U-Navigator.page" tar -czf "$PKG_DIR/$PKG_NAME" -C "$WORK_DIR" usr rm -rf "$WORK_DIR" diff --git a/packages/u-navigator-2026.06.23.r005.tgz b/packages/u-navigator-2026.06.23.r005.tgz deleted file mode 100644 index f44e4ab..0000000 Binary files a/packages/u-navigator-2026.06.23.r005.tgz and /dev/null differ diff --git a/packages/u-navigator-2026.06.23.r006.tgz b/packages/u-navigator-2026.06.23.r006.tgz new file mode 100644 index 0000000..a66c4e1 Binary files /dev/null and b/packages/u-navigator-2026.06.23.r006.tgz differ diff --git a/plugin-root/usr/local/emhttp/plugins/u-navigator/U-Navigator.page b/plugin-root/usr/local/emhttp/plugins/u-navigator/U-Navigator.page index f87382c..58235e9 100644 --- a/plugin-root/usr/local/emhttp/plugins/u-navigator/U-Navigator.page +++ b/plugin-root/usr/local/emhttp/plugins/u-navigator/U-Navigator.page @@ -4,8 +4,9 @@ Icon="folder-open" --- - +
@@ -22,5 +23,6 @@ $plugin = "u-navigator";
- + diff --git a/server/public/app.js b/server/public/app.js index 451c2d5..ae1ff1a 100644 --- a/server/public/app.js +++ b/server/public/app.js @@ -1,6 +1,7 @@ const workspace = document.querySelector('#workspace'); const statusText = document.querySelector('#statusText'); const API_BASE = window.UNAV_API_BASE || '/api'; +const APP_VERSION = window.UNAV_VERSION || 'dev'; const state = { config: null, windows: [], @@ -48,7 +49,7 @@ async function init() { if (!state.config.roots?.length) { throw new Error('No U-Navigator roots configured'); } - statusText.textContent = `${state.config.roots.length} Root, ${state.config.readOnly ? 'Read-only' : 'Schreibzugriff aktiv'}`; + statusText.textContent = `${state.config.roots.length} Root, ${state.config.readOnly ? 'Read-only' : 'Schreibzugriff aktiv'} ยท ${APP_VERSION}`; openExplorer(state.config.roots[0].path); openProperties(); openQueue(); diff --git a/u-navigator.plg b/u-navigator.plg index 2bf3a14..dd18995 100644 --- a/u-navigator.plg +++ b/u-navigator.plg @@ -1,7 +1,7 @@ - + ]> @@ -14,7 +14,7 @@ https://git.casaderoll.de/michael/Unraid-Navigator/raw/branch/main/packages/&package; -1e5eb8df508f7a4e46a4c13336302d16 +6079415588844c2e4a3f8aa43f949bd4