Merge pull request #1164 from Lin-Buo-Ren/improve-snap-package
Improve snap packaging
This commit is contained in:
commit
de257a6cf3
|
@ -13,3 +13,10 @@ cabal-dev
|
|||
cabal.sandbox.config
|
||||
cabal.config
|
||||
.stack-work
|
||||
|
||||
### Snap ###
|
||||
/snap/.snapcraft/
|
||||
/stage/
|
||||
/parts/
|
||||
/prime/
|
||||
*.snap
|
||||
|
|
|
@ -139,6 +139,10 @@ On Solus:
|
|||
|
||||
eopkg install shellcheck
|
||||
|
||||
From Snap Store:
|
||||
|
||||
snap install --channel=edge shellcheck
|
||||
|
||||
From Docker Hub:
|
||||
|
||||
```sh
|
||||
|
|
|
@ -15,6 +15,13 @@ description: |
|
|||
- To point out subtle caveats, corner cases and pitfalls that may cause an
|
||||
advanced user's otherwise working script to fail under future
|
||||
circumstances.
|
||||
|
||||
By default ShellCheck can only check non-hidden files under /home, to make
|
||||
ShellCheck be able to check files under /media and /run/media you must
|
||||
connect it to the `removable-media` interface manually:
|
||||
|
||||
# snap connect shellcheck:removable-media
|
||||
|
||||
version: git
|
||||
grade: devel
|
||||
confinement: strict
|
||||
|
@ -22,7 +29,7 @@ confinement: strict
|
|||
apps:
|
||||
shellcheck:
|
||||
command: usr/bin/shellcheck
|
||||
plugs: [home]
|
||||
plugs: [home, removable-media]
|
||||
|
||||
parts:
|
||||
shellcheck:
|
||||
|
|
Loading…
Reference in New Issue