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
Dominik Csapak 1e63d71311 transpile javascript before packaging
instead of using the babel-shim (which is not production-ready),
create a bundle app.js file with node-es6-module-transpiler in the
dh_auto_build step

this way, we only need to ship 1 js file instead of many

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-05-24 13:00:39 +02:00

18 lines
295 B
Makefile
Executable File

#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_HARDENING=1
override_dh_auto_build:
compile-modules convert -f bundle app/ui.js > app.js
dh_auto_build
override_dh_install:
cp vnc.html index.html.tpl
dh_install
%:
dh ${@} --with quilt