blob: 23dc53f16ea3cc837f0657bb03fd5db735d4be64 [file] [log] [blame]
#!/bin/bash
# Builds and uploads a debian package for push.
APPNAME=pushd
SYSTEMD=${APPNAME}.service
DESCRIPTION="Application to push updates for applications."
set -x -e
# Copy files into the right locations in ${ROOT}.
copy_release_files()
{
INSTALL="fakeroot install -D --verbose --backup=none --group=root --owner=root"
INSTALL_DIR="fakeroot install -d --verbose --backup=none --group=root --owner=root"
${INSTALL} --mode=644 -T ./sys/${APPNAME}.service ${ROOT}/etc/systemd/system/${APPNAME}.service
${INSTALL} --mode=755 -T ${GOPATH}/bin/push ${ROOT}/usr/local/bin/${APPNAME}
${INSTALL} --mode=644 -T ./allskiapush.json5 ${ROOT}/etc/${APPNAME}/skiapush.json5
${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/pushd/
${INSTALL} --mode=644 ./dist/* ${ROOT}/usr/local/share/pushd/
}
source ../bash/release.sh