update debian install config (NOT TESTED)

This commit is contained in:
Axolotle 2020-11-05 13:43:52 +01:00
parent 445f4c44a7
commit ef54685e2f
3 changed files with 5 additions and 17 deletions

5
debian/install vendored
View file

@ -1,4 +1 @@
src/dist usr/share/yunohost/admin app/dist/* usr/share/yunohost/admin
src/locales usr/share/yunohost/admin
src/views usr/share/yunohost/admin
src/index.html usr/share/yunohost/admin

7
debian/postinst vendored
View file

@ -10,13 +10,6 @@ do_configure() {
# Set document root permissions # Set document root permissions
chown -R root:root /usr/share/yunohost/admin chown -R root:root /usr/share/yunohost/admin
# Replace RANDOMID with a random hash to invalidate
# old cache ... we generate this locally on each machine
# to avoid leaking stuff like the version
# https://stackoverflow.com/questions/94445/using-openssl-what-does-unable-to-write-random-state-mean
RANDOMID=$(RANDFILE=.rnd openssl rand -hex 4)
sed -i "s/RANDOMID/$RANDOMID/g" /usr/share/yunohost/admin/index.html
} }
# summary of how this script can be called: # summary of how this script can be called:

10
debian/rules vendored
View file

@ -16,12 +16,10 @@ TMPDIR = $$(pwd)/debian/yunohost-admin
override_dh_auto_build: override_dh_auto_build:
# Run npm/bower/gulp # Run npm/bower/gulp
cd src ; npm --progress false --loglevel warn --color false install cd app ; npm --progress false --loglevel warn --color false install
cd src ; node_modules/gulp/bin/gulp.js build cd app ; npm run build
override_dh_clean: override_dh_clean:
dh_clean dh_clean
rm -rf src/node_modules rm -rf app/node_modules
rm -rf src/bower_components rm -rf app/dist
rm -rf src/dist