5
0
mirror of git://git.proxmox.com/git/novnc-pve.git synced 2025-01-07 21:17:58 +03:00
novnc-pve/debian/rules
Thomas Lamprecht d87f9815e2 buildsys: fix source format and building dsc
also drop the (since dh compat 10) implied --with quilt for that
source format.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-06 17:16:54 +02:00

22 lines
464 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 ${@}
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