Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #46 from bill-mahoney/snapVersion
Browse files Browse the repository at this point in the history
fix: local snap development
  • Loading branch information
ernestojeda authored Sep 10, 2020
2 parents 6f3e7e5 + ea743ef commit dda3783
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.snap
prime/
squashfs-root/
VERSION
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

7 changes: 6 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ name: edgex-device-grove
base: core18
version: "replace-me"
version-script: |
echo $(cat VERSION)-$(date +%Y%m%d)+$(git rev-parse --short HEAD)
if [ -f VERSION ]; then
PROJECT_VERSION=$(cat VERSION)
else
PROJECT_VERSION=local-dev
fi
echo $PROJECT_VERSION-$(date +%Y%m%d)+$(git rev-parse --short HEAD)
summary: Connect to Grove sensors on Raspberry Pi with EdgeX
description: |
The EdgeX Device Grove Service is developed to control/communicate Grove
Expand Down

0 comments on commit dda3783

Please sign in to comment.