1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 16:14:45 +00:00

snapcraft yaml, fixes #92

This commit is contained in:
Mikołaj Chwalisz
2019-03-03 22:06:13 +01:00
parent d3ba86fe5d
commit b703426c7f
2 changed files with 42 additions and 0 deletions

10
.gitignore vendored
View File

@@ -11,3 +11,13 @@ tags
env
htmlcov
# Snap packages
parts/
prime/
stage/
*.snap
/packages/snap/.snapcraft/
# Source archive packed by `snapcraft cleanbuild` before pushing to the LXD container
/packages/*_source.tar.bz2

View File

@@ -0,0 +1,32 @@
name: dotdrop
version: latest
version-script: cat $SNAPCRAFT_STAGE/bin/dotdrop | grep '__requires__' | sed "s/.*'dotdrop==\(.*\)'/\1/"
summary: It makes the management of dotfiles between different hosts easy.
description: >
It allows to store your dotfiles on git and automagically deploy
different versions of the same file on different setups.
It also allows to manage different *sets* of dotfiles.
For example you can have a set of dotfiles for your home laptop and
a different set for your office desktop. Those sets may overlap and different
versions of the same dotfiles can be deployed on different predefined *profiles*.
Or you may have a main set of dotfiles for your
everyday's host and a sub-set you only need to deploy to temporary
hosts (cloud VM, etc) that may be using
a slightly different version of some of the dotfiles.
confinement: strict
grade: stable
apps:
dotdrop:
command: dotdrop
plugs:
- home
parts:
dotdrop:
plugin: python
python-version: python3
source: ../
stage-packages:
- file