5
0
mirror of git://git.proxmox.com/git/novnc-pve.git synced 2025-01-05 13:17:53 +03:00
novnc-pve/debian/rules
Dominik Csapak bd98941d91 use esbuild instead of node-es6-module-transpiler
the latter cannot cope with some js syntax novnc now uses, but the former can

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-21 11:20:46 +01:00

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