mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 10:19:55 +02:00
Now include commit hash in develop builds
This commit is contained in:
parent
ee4e5c244f
commit
43e096b1e0
2 changed files with 11 additions and 0 deletions
9
scripts/set-api-build-metadata.sh
Executable file
9
scripts/set-api-build-metadata.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash -eu
|
||||
# given a commit hash, will append this to the version number stored
|
||||
# in api/funkwhale_api/__init__.py
|
||||
|
||||
commit=$1
|
||||
suffix="+git.$commit"
|
||||
replace="__version__ = \"\1${suffix}\""
|
||||
file="api/funkwhale_api/__init__.py"
|
||||
sed -i -E 's@__version__ = \"(.*)\"@'"$replace"'@' $file
|
Loading…
Add table
Add a link
Reference in a new issue