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:
Pierre Ossman 2020-12-30 13:56:47 +01:00
parent 23249c7263
commit cd9f535eb3
2 changed files with 17 additions and 7 deletions

View File

@ -33,12 +33,6 @@ jobs:
container: snapcore/snapcraft
steps:
- 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: |
VERSION=$(grep '"version"' package.json | cut -d '"' -f 4)
echo $VERSION

View File

@ -13,8 +13,24 @@ confinement: strict
parts:
novnc:
source: build/
source: .
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:
- bash
- jq