|
|
@ -1,6 +1,7 @@
|
|
|
|
name: monolith
|
|
|
|
name: monolith
|
|
|
|
base: core18
|
|
|
|
base: core18
|
|
|
|
version: git
|
|
|
|
# Version data defined inside the monolith part below
|
|
|
|
|
|
|
|
adopt-info: monolith
|
|
|
|
summary: Monolith - Save HTML pages with ease
|
|
|
|
summary: Monolith - Save HTML pages with ease
|
|
|
|
description: |
|
|
|
|
description: |
|
|
|
|
A data hoarder's dream come true: bundle any web page into a single
|
|
|
|
A data hoarder's dream come true: bundle any web page into a single
|
|
|
@ -17,6 +18,14 @@ description: |
|
|
|
|
|
|
|
|
|
|
|
|
confinement: strict
|
|
|
|
confinement: strict
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Building on armhf fails, so we specify all supported non-armhf architectures
|
|
|
|
|
|
|
|
architectures:
|
|
|
|
|
|
|
|
- build-on: amd64
|
|
|
|
|
|
|
|
- build-on: i386
|
|
|
|
|
|
|
|
- build-on: arm64
|
|
|
|
|
|
|
|
- build-on: ppc64el
|
|
|
|
|
|
|
|
- build-on: s390x
|
|
|
|
|
|
|
|
|
|
|
|
parts:
|
|
|
|
parts:
|
|
|
|
monolith:
|
|
|
|
monolith:
|
|
|
|
plugin: rust
|
|
|
|
plugin: rust
|
|
|
@ -24,6 +33,21 @@ parts:
|
|
|
|
build-packages:
|
|
|
|
build-packages:
|
|
|
|
- libssl-dev
|
|
|
|
- libssl-dev
|
|
|
|
- pkg-config
|
|
|
|
- pkg-config
|
|
|
|
|
|
|
|
override-pull: |
|
|
|
|
|
|
|
|
snapcraftctl pull
|
|
|
|
|
|
|
|
# Determine the current tag
|
|
|
|
|
|
|
|
last_committed_tag="$(git describe --tags --abbrev=0)"
|
|
|
|
|
|
|
|
last_committed_tag_ver="$(echo ${last_committed_tag} | sed 's/v//')"
|
|
|
|
|
|
|
|
# Determine the most recent version in the beta channel in the Snap Store
|
|
|
|
|
|
|
|
last_released_tag="$(snap info $SNAPCRAFT_PROJECT_NAME | awk '$1 == "beta:" { print $2 }')"
|
|
|
|
|
|
|
|
# If the latest tag from the upstream project has not been released to
|
|
|
|
|
|
|
|
# beta, build that tag instead of master.
|
|
|
|
|
|
|
|
if [ "${last_committed_tag_ver}" != "${last_released_tag}" ]; then
|
|
|
|
|
|
|
|
git fetch
|
|
|
|
|
|
|
|
git checkout "${last_committed_tag}"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
# set version number of the snap based on what we did above
|
|
|
|
|
|
|
|
snapcraftctl set-version $(git describe --tags --abbrev=0)
|
|
|
|
|
|
|
|
|
|
|
|
apps:
|
|
|
|
apps:
|
|
|
|
monolith:
|
|
|
|
monolith:
|
|
|
|