mirror of
git://git.proxmox.com/git/novnc-pve.git
synced 2025-01-05 13:17:53 +03:00
bd98941d91
the latter cannot cope with some js syntax novnc now uses, but the former can Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
22 lines
477 B
Makefile
Executable File
22 lines
477 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
include /usr/share/dpkg/pkg-info.mk
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
#export DH_VERBOSE=1
|
|
|
|
export DEB_BUILD_HARDENING=1
|
|
|
|
%:
|
|
dh ${@} --with quilt
|
|
|
|
override_dh_auto_build:
|
|
esbuild --bundle app/ui.js > app.js
|
|
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
|