summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2022-09-14 10:13:09 +0200
committerPierre Ossman <ossman@cendio.se>2022-09-14 10:34:01 +0200
commitd5b8425d42ae0e383010354b6c88197b5b5d407b (patch)
tree90f1d82205560b256bba291d60e17c1133e49357
parent69e0f0f5db86302944f7d8f1e80b2b641f06c61b (diff)
downloadnovnc-d5b8425d42ae0e383010354b6c88197b5b5d407b.tar.gz
Use automatic version when building snap directly
Make it easier to build a snap from your working copy by removing the restriction of having to modify the version field first.
-rw-r--r--.github/workflows/deploy.yml2
-rw-r--r--snap/snapcraft.yaml2
2 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 31601c7..8d6aa4a 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -58,7 +58,7 @@ jobs:
- run: |
VERSION=$(grep '"version"' package.json | cut -d '"' -f 4)
echo $VERSION
- sed -i "s/@VERSION@/$VERSION/g" snap/snapcraft.yaml
+ sed -i "s/^version:.*/version: '$VERSION'/" snap/snapcraft.yaml
- uses: snapcore/action-build@v1
id: snapcraft
- uses: actions/upload-artifact@v2
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 3549c78..2424424 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -1,6 +1,6 @@
name: novnc
base: core18 # the base snap is the execution environment for this snap
-version: '@VERSION@'
+version: git
summary: Open Source VNC client using HTML5 (WebSockets, Canvas)
description: |
Open Source VNC client using HTML5 (WebSockets, Canvas).