Skip to content

Commit

Permalink
added snapcraft config
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Apr 11, 2018
1 parent f3c6a81 commit e5de8bc
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Expand Up @@ -18,3 +18,8 @@
*.pdf
bin/
/lmdownload
parts/
prime/
stage/
snap/.snapcraft/
*.snap
31 changes: 31 additions & 0 deletions snap/snapcraft.yaml
@@ -0,0 +1,31 @@
name: lmdownload
version: "18.04.0"
summary: Linux Magazine PDF downloader for subscribers
grade: stable
confinement: strict
description: |
Linux Magazine PDF downloader for subscribers
https://github.com/pbek/lmdownload
apps:
lmdownload:
command: lmdownload
# see https://docs.snapcraft.io/reference/interfaces
plugs: [home, network, removable-media]

parts:
go:
source-tag: go1.10.1
lmdownload:
# see https://docs.snapcraft.io/reference/plugins/go
plugin: go
source: .
go-importpath: github.com/pbek/lmdownload
build: |
#export GOPATH=$(dirname $SNAPCRAFT_PART_INSTALL)/go
#export PATH=$GOPATH/bin:$PATH
./build.sh
./bin/lmdownload -v
install: |
cp -a ./bin/lmdownload $SNAPCRAFT_PART_INSTALL
after: [go]

0 comments on commit e5de8bc

Please sign in to comment.