Skip to content

Commit

Permalink
Use git describe --tags --abbrev=0 to retrieve current activitywatch …
Browse files Browse the repository at this point in the history
…version in aw.spec
  • Loading branch information
xylix authored and ErikBjare committed Jul 6, 2020
1 parent 9cc8508 commit 47cd07e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion aw.spec
Expand Up @@ -3,9 +3,14 @@

import os
import platform
import subprocess
import aw_core
import flask_restx

git_cmd = "git describe --tags --abbrev=0"
current_release = subprocess.run(git_cmd.split(" "), stdout=subprocess.PIPE, stderr=subprocess.STDOUT, encoding="utf8").stdout.strip()
print("bundling activitywatch version " + current_release)

aw_core_path = os.path.dirname(aw_core.__file__)
restx_path = os.path.dirname(flask_restx.__file__)

Expand Down Expand Up @@ -195,4 +200,4 @@ if platform.system() == "Darwin":
info_plist={"CFBundleExecutable": "MacOS/aw-qt",
"CFBundleIconFile": "logo.icns",
# TODO: Get the right version here
"CFBundleShortVersionString": "0.9.0"})
"CFBundleShortVersionString": current_release })

0 comments on commit 47cd07e

Please sign in to comment.