We don't need to convert things anymore, so reference files directly in
the snap yaml file.
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
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