Package files directly in snapcraft.yaml
We don't need to convert things anymore, so reference files directly in the snap yaml file.
This commit is contained in:
parent
23249c7263
commit
cd9f535eb3
|
@ -33,12 +33,6 @@ jobs:
|
||||||
container: snapcore/snapcraft
|
container: snapcore/snapcraft
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
|
||||||
- run: npm install
|
|
||||||
- run: ./utils/use_require.js --clean --as commonjs --with-app
|
|
||||||
- run: |
|
|
||||||
cp utils/launch.sh build/launch.sh
|
|
||||||
cp snap/local/svc_wrapper.sh build/svc_wrapper.sh
|
|
||||||
- run: |
|
- run: |
|
||||||
VERSION=$(grep '"version"' package.json | cut -d '"' -f 4)
|
VERSION=$(grep '"version"' package.json | cut -d '"' -f 4)
|
||||||
echo $VERSION
|
echo $VERSION
|
||||||
|
|
|
@ -13,8 +13,24 @@ confinement: strict
|
||||||
|
|
||||||
parts:
|
parts:
|
||||||
novnc:
|
novnc:
|
||||||
source: build/
|
source: .
|
||||||
plugin: dump
|
plugin: dump
|
||||||
|
organize:
|
||||||
|
utils/launch.sh: /
|
||||||
|
stage:
|
||||||
|
- vnc.html
|
||||||
|
- app
|
||||||
|
- core/**/*.js
|
||||||
|
- vendor/**/*.js
|
||||||
|
- launch.sh
|
||||||
|
stage-packages:
|
||||||
|
- bash
|
||||||
|
|
||||||
|
svc-script:
|
||||||
|
source: snap/local
|
||||||
|
plugin: dump
|
||||||
|
stage:
|
||||||
|
- svc_wrapper.sh
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- bash
|
- bash
|
||||||
- jq
|
- jq
|
||||||
|
|
Loading…
Reference in New Issue