blob: f3450b1280f264e193b15a885eafcb160df50187 [file]
#!/bin/bash
# Builds and uploads a debian package for skdebugger.
APPNAME=skdebuggerd
SYSTEMD=${APPNAME}.service
DESCRIPTION="Program that serves up HTML/CSS/JS content for the Skia Debugger."
# 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=644 -T ./sys/${APPNAME}.service ${ROOT}/etc/systemd/system/${APPNAME}.service
${INSTALL} --mode=755 -T ${GOPATH}/bin/skdebugger ${ROOT}/usr/local/bin/skdebugger
${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/skdebugger/templates
${INSTALL} --mode=644 ./templates/* ${ROOT}/usr/local/share/skdebugger/templates
${INSTALL} --mode=644 ./res/js/core.js ${ROOT}/usr/local/share/skdebugger/res/js/core.js
${INSTALL} --mode=644 ./res/vul/elements.html ${ROOT}/usr/local/share/skdebugger/res/vul/elements.html
${INSTALL} --mode=644 ./res/img/favicon.ico ${ROOT}/usr/local/share/skdebugger/res/img/favicon.ico
}
rm ./res/vul/elements.html
make
source ../bash/release.sh