Tweaks to make Snapcrafts Build

pull/1045/head
Adam Boutcher 2021-09-03 19:22:28 +01:00
parent 1f11e31781
commit 1504265fb1
1 changed files with 16 additions and 11 deletions

View File

@ -1,28 +1,31 @@
name: statping-ng name: statping-ng
version-script: cat version.txt
version: "stable" version: "stable"
version-script: cat version.txt
summary: Statping-ng Server Monitoring with Status Page summary: Statping-ng Server Monitoring with Status Page
description: > description: |
An easy to use Status Page for your websites and applications. An easy to use Status Page for your websites and applications.
Statping will automatically fetch the application and render a beautiful Statping will automatically fetch the application and render a beautiful
status page with tons of features for you to build an even better status page. 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 This Status Page generator allows you to use MySQL, Postgres, or SQLite
on multiple operating systems. on multiple operating systems.
base: base
base: bare
build-base: core18
type: app type: app
confinement: strict confinement: strict
grade: stable grade: stable
issues: https://github.com/statping-ng/statping-ng/issues license: GPL-3.0
architectures: architectures:
- build-on: i386
- build-on: amd64 - build-on: amd64
- build-on: armhf - build-on: armhf
- build-on: arm64 - build-on: arm64
- build-on: i386
apps: apps:
statping: statping:
command: statping command: bin/statping
daemon: simple
plugs: plugs:
- home - home
- network - network
@ -33,8 +36,10 @@ parts:
source: . source: .
plugin: nil plugin: nil
override-build: | override-build: |
apt-get update curl -o- -L https://raw.githubusercontent.com/adamboutcher/statping-ng/dev/install.sh | bash
apt-get install -y curl tar build-packages:
curl -o- -L https://raw.githubusercontent.com/statping-ng/statping-ng/stable/install.sh | bash - tar
cp /usr/local/bin/statping statping - curl
cp /usr/local/bin/statping /build/statping-ng/prime/./statping - bash
organize:
/usr/local/bin/statping: bin/