From 06e5c0bf2f4410cc31e5a0d0ef5540eb9b9b95a5 Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Mon, 22 Jun 2020 11:15:23 +0100 Subject: [PATCH] Add starter snapcraft configuration Contains a few leftover TODOs, the build version one is the most problematic due to the go plugin having no current support for adding ldflags --- snap/snapcraft.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..1f6fa18 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,25 @@ +name: rove # Nn-registered, use `snap register` +base: core20 +version: '0.1' # TODO: Set this up programatically +summary: An asynchronous nomadic game about exploring as part of a loose community. +# TODO: Add more to the description +description: | + An asynchronous nomadic game about exploring as part of a loose community. +grade: devel # Upgrade to 'stable' when ready +confinement: strict + +apps: + rove: + command: bin/rove + plugs: + - network # Needed for access to hosted servers + +parts: + go-rove: + plugin: go + source-type: local + source: . + build-packages: + - gcc-multilib + # TODO: Add version somehow + # TODO: Only build cmd/rove with 'go-buildtags'