diff --git a/debian/rules b/debian/rules index aa0aad78..b0315118 100755 --- a/debian/rules +++ b/debian/rules @@ -14,16 +14,13 @@ TMPDIR = $$(pwd)/debian/yunohost-admin %: dh $@ -override_dh_auto_install: +override_dh_auto_build: # Replace VERSION with current package version to prevent web browser # to serve old css/js files sed -i 's/VERSION/$(DEBVERS)/g' src/index.html # Run npm/bower/gulp - # For some unknown reason, the postinstall scripts in package.json cannot be run, and triggers this error : - # "npm WARN cannot run in wd yunohost-admin@ bower install && gulp build (wd=/build/path)" - cd src ; npm --progress false --loglevel warn --color false --unsafe-perm install - cd src ; node_modules/bower/bin/bower install --allow-root + cd src ; npm --progress false --loglevel warn --color false install cd src ; node_modules/gulp/bin/gulp.js build override_dh_clean: