blob: 24b66633f734e04af53b28c4a5acf47033bb9bce [file] [log] [blame]
#!/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} --mode=755 -T ${GOPATH}/bin/skia_build ${ROOT}/usr/local/bin/skia_build
${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_DIR} --mode=755 ${ROOT}/usr/local/share/skdebugger/res/img
${INSTALL} --mode=644 ./res/img/* ${ROOT}/usr/local/share/skdebugger/res/img
}
rm ./res/vul/elements.html
make
source ../bash/release.sh