blob: 0d9dbaccb703093b8d2b6a0cb3ae312e6ba9bd53 [file] [log] [blame]
#!/bin/bash
APPNAME=status
set -x -e
# Copy files into the right locations in ${ROOT}.
copy_release_files()
{
INSTALL="install -D --verbose --backup=none"
INSTALL_DIR="install -d --verbose --backup=none"
${INSTALL} --mode=644 -T Dockerfile ${ROOT}/Dockerfile
${INSTALL} --mode=755 -T ${GOPATH}/bin/${APPNAME} ${ROOT}/usr/local/bin/${APPNAME}
${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/${APPNAME}/dist
${INSTALL} --mode=644 ./dist/* ${ROOT}/usr/local/share/${APPNAME}/dist
${INSTALL} --mode=644 -T ./res/img/favicon-caution.ico ${ROOT}/usr/local/share/${APPNAME}/dist/img/favicon-caution.ico
${INSTALL} --mode=644 -T ./res/img/favicon-closed.ico ${ROOT}/usr/local/share/${APPNAME}/dist/img/favicon-closed.ico
${INSTALL} --mode=644 -T ./res/img/favicon-open.ico ${ROOT}/usr/local/share/${APPNAME}/dist/img/favicon-open.ico
}
source ../bash/docker_build.sh