diff --git a/debian/install b/debian/install index f951a7f..e7ee694 100644 --- a/debian/install +++ b/debian/install @@ -4,5 +4,6 @@ app/sounds usr/share/novnc-pve/app app/styles usr/share/novnc-pve/app app/error-handler.js usr/share/novnc-pve/app app.js usr/share/novnc-pve +package.json usr/share/novnc-pve docs usr/share/novnc-pve index.html.tpl usr/share/novnc-pve diff --git a/debian/patches/0006-change-source-directory-for-fetching-images-js-files.patch b/debian/patches/0006-change-source-directory-for-fetching-images-js-files.patch index 151adcd..d14dabc 100644 --- a/debian/patches/0006-change-source-directory-for-fetching-images-js-files.patch +++ b/debian/patches/0006-change-source-directory-for-fetching-images-js-files.patch @@ -8,14 +8,23 @@ also change the directory in the build script Signed-off-by: Dominik Csapak --- - app/ui.js | 2 +- + app/ui.js | 4 ++-- vnc.html | 50 +++++++++++++++++++++++++------------------------- - 2 files changed, 26 insertions(+), 26 deletions(-) + 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/app/ui.js b/app/ui.js -index ef2c77f..d604067 100644 +index ef2c77f..1605565 100644 --- a/app/ui.js +++ b/app/ui.js +@@ -64,7 +64,7 @@ const UI = { + // Translate the DOM + l10n.translateDOM(); + +- WebUtil.fetchJSON('./package.json') ++ WebUtil.fetchJSON('/novnc/package.json') + .then((packageInfo) => { + Array.from(document.getElementsByClassName('noVNC_version')).forEach(el => el.innerText = packageInfo.version); + }) @@ -1767,7 +1767,7 @@ l10n.setup(LINGUAS); if (l10n.language === "en" || l10n.dictionary !== undefined) { UI.prime(); diff --git a/debian/rules b/debian/rules index 2ee7acd..3599277 100755 --- a/debian/rules +++ b/debian/rules @@ -17,4 +17,5 @@ override_dh_auto_build: override_dh_install: cp vnc.html index.html.tpl sed -i -re "s/\.(css|js)/\.\1?ver=${DEB_VERSION_UPSTREAM_REVISION}/g" index.html.tpl + echo "{ \"version\": \"${DEB_VERSION_UPSTREAM_REVISION}\" }" >package.json dh_install