Created
October 5, 2017 18:52
-
-
Save Roadmaster/c00f8aa205ccbe003f6fd24549effe02 to your computer and use it in GitHub Desktop.
snap building scripts and yamls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace=${1:-tomechangosubanana} | |
name=${2:-1} | |
rev=${3:-2} | |
cat > snapcraft.yaml <<EOF | |
name: hello-$namespace-$name | |
version: $rev | |
summary: say hello | |
confinement: strict | |
grade: stable | |
description: $namespace's friendly test | |
architectures: | |
- amd64 | |
apps: | |
hello: | |
command: echo "hello" | |
parts: | |
empty: | |
plugin: nil | |
EOF | |
snapcraft | |
snapcraft push hello-$namespace-${name}_${rev}_amd64.snap --release edge | |
rm -rf parts snap stage | |
name: hello-tomechangosubanana-1 | |
version: foo4-huge | |
summary: say hello | |
confinement: strict | |
grade: stable | |
description: tomechangosubanana's friendly test | |
architectures: | |
- amd64 | |
apps: | |
hello: | |
command: echo "hello" | |
parts: | |
empty: | |
plugin: nil | |
bigfile: | |
source: local-source/ | |
plugin: dump | |
organize: | |
"*": my-big-files | |
snap: | |
- my-big-files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment