diff --git a/Makefile b/Makefile index 86210826..922db2a8 100644 --- a/Makefile +++ b/Makefile @@ -282,6 +282,9 @@ travis-build: curl -s -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Travis-API-Version: 3" -H "Authorization: token $(TRAVIS_API)" -d $(TRAVIS_BUILD_CMD) https://api.travis-ci.com/repo/hunterlong%2Fstatup/requests curl -H "Content-Type: application/json" --data '{"docker_tag": "latest"}' -X POST $(DOCKER) +snapcraft: + docker run --rm -v "$PWD":/build -w /build snapcore/snapcraft bash -c "apt update && snapcraft" + # install xgo and pull the xgo docker image xgo-install: clean go get github.com/karalabe/xgo diff --git a/snapcraft.yaml b/snapcraft.yaml new file mode 100644 index 00000000..3f5da68f --- /dev/null +++ b/snapcraft.yaml @@ -0,0 +1,20 @@ +name: statup +version: 0.79.91 +summary: Statup Server Monitoring with Status Page +description: > + An easy to use Status Page for your websites and applications. + Statup will automatically fetch the application and render a beautiful + status page with tons of features for you to build an even better status page. + This Status Page generator allows you to use MySQL, Postgres, or SQLite + on multiple operating systems. + +confinement: stable + +parts: + statup: + plugin: dump + source: https://github.com/hunterlong/statup/releases/download/v$SNAPCRAFT_PROJECT_VERSION/statup-linux-x64.tar.gz + +apps: + statup: + command: statup \ No newline at end of file