#184 humming along

This commit is contained in:
UKDTOM 2020-10-16 23:48:09 +02:00
parent 5e2a2d82d0
commit 4c6f843b8a
3 changed files with 5 additions and 4 deletions

2
package-lock.json generated
View file

@ -1,6 +1,6 @@
{
"name": "webtools-ng",
"version": "0.1.6",
"version": "0.1.8",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View file

@ -9,7 +9,7 @@
"scripts": {
"serve": "vue-cli-service electron:serve",
"build": "run-script-os",
"build:darwin:linux": "chmod +x script/getGitVer.sh && script/getGitVer.sh && vue-cli-service electron:build",
"build:darwin:linux": "chmod +x script/getGitVer.sh && . script/getGitVer.sh && vue-cli-service electron:build && unset AppRev",
"build:win32": "vue-cli-service electron:build",
"lint": "vue-cli-service lint",
"electron:build": "vue-cli-service electron:build",

View file

@ -1,7 +1,8 @@
# get commit hash
rev=$(git rev-parse --short HEAD 2>&1)
# Export to env as well, for the artifact
export AppRev=$(git rev-parse --short HEAD 2>&1)
echo $(git rev-parse --short HEAD)
export AppRev=$(git rev-parse --short HEAD)
# Get git root directory
root=$(git rev-parse --show-toplevel 2>&1)
# Save to version file