hydrogen-docker/deb/make_deb.sh

15 lines
382 B
Bash
Executable File

#!/bin/bash
set -e
VERSION=$(jq -r .version /app/package.json)
DEBFILE="sudois-hydrogen-web_${VERSION}_all.deb"
echo "version: ${VERSION}"
echo ${DEBFILE}
fpm --after-install /deb/after-install.sh -t deb -v ${VERSION} -n sudois-hydrogen-web -a all -s dir /app/target/=/usr/local/share/hydrogen-web/
echo $DEBFILE > /deb/target/version.txt
stat /deb/target/$DEBFILE > /dev/null