mirror of
git://git.proxmox.com/git/novnc-pve.git
synced 2025-01-03 05:17:56 +03:00
add version to js/css url to prevent caching
when our version changes, we always want the user to have the new version Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
d709d68c17
commit
4930b83280
2
debian/rules
vendored
2
debian/rules
vendored
@ -4,6 +4,7 @@
|
|||||||
#export DH_VERBOSE=1
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
export DEB_BUILD_HARDENING=1
|
export DEB_BUILD_HARDENING=1
|
||||||
|
DEB_VERSION = $(shell dpkg-parsechangelog -SVersion)
|
||||||
|
|
||||||
override_dh_auto_build:
|
override_dh_auto_build:
|
||||||
compile-modules convert -f bundle app/ui.js > app.js
|
compile-modules convert -f bundle app/ui.js > app.js
|
||||||
@ -11,6 +12,7 @@ override_dh_auto_build:
|
|||||||
|
|
||||||
override_dh_install:
|
override_dh_install:
|
||||||
cp vnc.html index.html.tpl
|
cp vnc.html index.html.tpl
|
||||||
|
sed -i -re "s/\.(css|js)/\.\1?ver=${DEB_VERSION}/g" index.html.tpl
|
||||||
dh_install
|
dh_install
|
||||||
|
|
||||||
%:
|
%:
|
||||||
|
Loading…
Reference in New Issue
Block a user