syncthing/snapcraft.yaml.template
Ian Johnson 95eb81467c build: Improve snap generation (fixes #4863, fixes #5000) (#5034)
This makes the environment variables easier to read/change.

Also expand the list so it's not inline, more readable that way.

The new architecture syntax for snapcraft allows specifying both the building architecture and the running architecture of the snap, so if we specify the build-on architecture as the host architecture and the run-on architecture as the target architecture, then snapcraft shouldn't need to install any cross-compilers, etc.
2018-06-27 08:08:57 +02:00

36 lines
831 B
Plaintext

name: syncthing
version: {{.Version}}
summary: Open Source Continuous File Synchronization
description: |
Syncthing replaces proprietary sync and cloud services with something open,
trustworthy and decentralized. Your data is your data alone and you deserve
to choose where it is stored, if it is shared with some third party and how
it's transmitted over the Internet.
architectures:
- build-on: [{{.HostArchitecture}}]
run-on: [{{.TargetArchitecture}}]
grade: {{.Grade}}
confinement: strict
apps:
syncthing:
command: syncthing
environment:
HOME: ${SNAP_USER_COMMON}
XDG_CONFIG_HOME: ${SNAP_USER_COMMON}
plugs:
- home
- network
- network-bind
- removable-media
parts:
syncthing:
source: .
plugin: dump
stage:
- syncthing
prime:
- syncthing