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.sandbox.config
|
||||||
cabal.config
|
cabal.config
|
||||||
.stack-work
|
.stack-work
|
||||||
|
|
||||||
|
### Snap ###
|
||||||
|
/snap/.snapcraft/
|
||||||
|
/stage/
|
||||||
|
/parts/
|
||||||
|
/prime/
|
||||||
|
*.snap
|
||||||
|
|
|
@ -139,6 +139,10 @@ On Solus:
|
||||||
|
|
||||||
eopkg install shellcheck
|
eopkg install shellcheck
|
||||||
|
|
||||||
|
From Snap Store:
|
||||||
|
|
||||||
|
snap install --channel=edge shellcheck
|
||||||
|
|
||||||
From Docker Hub:
|
From Docker Hub:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
|
@ -15,6 +15,13 @@ description: |
|
||||||
- To point out subtle caveats, corner cases and pitfalls that may cause an
|
- To point out subtle caveats, corner cases and pitfalls that may cause an
|
||||||
advanced user's otherwise working script to fail under future
|
advanced user's otherwise working script to fail under future
|
||||||
circumstances.
|
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
|
version: git
|
||||||
grade: devel
|
grade: devel
|
||||||
confinement: strict
|
confinement: strict
|
||||||
|
@ -22,7 +29,7 @@ confinement: strict
|
||||||
apps:
|
apps:
|
||||||
shellcheck:
|
shellcheck:
|
||||||
command: usr/bin/shellcheck
|
command: usr/bin/shellcheck
|
||||||
plugs: [home]
|
plugs: [home, removable-media]
|
||||||
|
|
||||||
parts:
|
parts:
|
||||||
shellcheck:
|
shellcheck:
|
||||||
|
|
Loading…
Reference in New Issue