mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
29 lines
882 B
Makefile
Executable file
29 lines
882 B
Makefile
Executable file
#!/usr/bin/make -f
|
||
# -*- makefile -*-
|
||
|
||
# Uncomment this to turn on verbose mode.
|
||
#export DH_VERBOSE=1
|
||
|
||
# Get package version
|
||
# dpkg-parsechangelog > 1.17 could use dpkg-parsechangelog --show-field Version
|
||
DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
|
||
|
||
# Define temporary debian directory
|
||
TMPDIR = $$(pwd)/debian/yunohost-admin
|
||
|
||
%:
|
||
dh $@
|
||
|
||
override_dh_auto_build:
|
||
/usr/bin/curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null
|
||
echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x bullseye main' > /etc/apt/sources.list.d/nodesource.list
|
||
/usr/bin/apt update
|
||
/usr/bin/apt install nodejs -y
|
||
cd app ; /usr/bin/npm --progress false ci
|
||
cd app ; /usr/bin/npm run build
|
||
|
||
|
||
override_dh_clean:
|
||
dh_clean
|
||
rm -rf app/node_modules
|
||
rm -rf app/dist
|