mirror of
git://git.proxmox.com/git/novnc-pve.git
synced 2025-03-11 16:58:31 +03:00
ship minimal packages.json
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
cbc47a06d5
commit
86b61b8527
1
debian/install
vendored
1
debian/install
vendored
@ -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
|
||||
|
@ -8,14 +8,23 @@ also change the directory in the build script
|
||||
|
||||
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
|
||||
---
|
||||
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();
|
||||
|
1
debian/rules
vendored
1
debian/rules
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user