diff --git a/debian/control b/debian/control index bf81fd7c..7054002a 100644 --- a/debian/control +++ b/debian/control @@ -6,7 +6,8 @@ Homepage: https://www.sipwise.com/ Standards-Version: 3.9.8 Build-Depends: debhelper-compat (= 12), - yarnpkg, + yarnpkg | nodejs (>= 12.19.0~), + yarnpkg | yarn, Package: ngcp-csc-ui Architecture: all diff --git a/debian/rules b/debian/rules index ec172b73..46615c45 100755 --- a/debian/rules +++ b/debian/rules @@ -3,11 +3,14 @@ # Uncomment this to turn on verbose mode. # export DH_VERBOSE=1 +# if yarnpkg is available use it, otherwise fall back to yarn +YARN_BIN := $(shell which yarnpkg || echo yarn) + %: dh "$@" override_dh_auto_install: - yarnpkg install + $(YARN_BIN) install cp src/config.template.js src/config.js - yarnpkg run build + $(YARN_BIN) run build mv dist/spa csc