| #!/bin/bash |
| # Builds and uploads a debian package for pulld . |
| APPNAME=pulld-arm |
| SYSTEMD="${APPNAME}.service" |
| SYSTEMD_TIMER="" |
| DESCRIPTION="Application to pull push-controlled applications. Also allows viewing those applications status." |
| FORCE_ARCH="armhf" |
| |
| # Copy files into the right locations in ${ROOT}. |
| copy_release_files() |
| { |
| INSTALL="sudo install -D --verbose --backup=none --group=root --owner=root" |
| INSTALL_DIR="sudo install -d --verbose --backup=none --group=root --owner=root" |
| ${INSTALL} --mode=755 -T ./out/pulld_arm ${ROOT}/usr/local/bin/${APPNAME} |
| ${INSTALL} --mode=644 -T ./sys/${APPNAME}.service ${ROOT}/etc/systemd/system/${APPNAME}.service |
| ${INSTALL_DIR} --mode=777 ${ROOT}/var/${APPNAME} |
| ${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/pulld/ |
| ${INSTALL} --mode=644 ./dist/* ${ROOT}/usr/local/share/pulld/ |
| |
| source ../bash/release.sh |