/
snapcraft.yaml
36 lines (32 loc) · 1.17 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: wilfred
base: core18
version: git # set version on release ('v0.1.0') and use 'git' during dev
summary: A CLI for managing game servers using Docker # 79 char long summary
description: |
Wilfred is a command-line interface for running game servers locally. It uses Docker to run game servers in containers, which means they are completely separated. Wilfred can run any game that can run in Docker.
Wilfred is currently under development and should not be considered stable. Features may break or may not be implemented yet. Use with caution.
grade: devel # 'stable' on release ('devel' during dev)
confinement: strict
parts:
wilfred:
override-build: |
sed -i "s/development/`git log -1 --format="%H"`/g" wilfred/version.py
sed -i "s/YYYY-MM-DD/`git log -1 --format="%at" | xargs -I{} date -d @{} +%Y-%m-%d`/g" wilfred/version.py
snapcraftctl build
plugin: python
source: .
build-packages:
- python3-distutils
- build-essential
apps:
wilfred:
command: bin/wilfred
plugs:
- home
- removable-media
- docker
- network
environment:
PYTHONIOENCODING: utf-8
LC_ALL: C.UTF-8
LANG: C.UTF-8