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
This commit is contained in:
Marc Di Luzio 2020-06-22 11:15:23 +01:00
parent 3f1b8a4c2a
commit 06e5c0bf2f

25
snap/snapcraft.yaml Normal file
View file

@ -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'