mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(tools): Use correct hash when automatically updating flatpak version
Before v0.2.9 would be sorted below v0.2.12, giving the wrong hash.
This commit is contained in:
parent
e90edbf5c2
commit
1f1cb2f5f9
|
@ -51,7 +51,7 @@ update_osx() {
|
|||
|
||||
update_flatpak() {
|
||||
cd flatpak
|
||||
latest_tag_ref=$(git ls-remote --tags https://github.com/toktok/c-toxcore | tail -n1)
|
||||
latest_tag_ref=$(git ls-remote --tags https://github.com/toktok/c-toxcore | sort -V -k2 | tail -n1)
|
||||
ref_array=($latest_tag_ref)
|
||||
commit_hash=${ref_array[0]}
|
||||
perl -i -0pe "s|(https://github.com/toktok/c-toxcore.*?)$VERSION_PATTERN(.*?)[a-f0-9]{40}|\${1}$@\${2}$commit_hash|gms" io.github.qtox.qTox.json
|
||||
|
|
Loading…
Reference in New Issue
Block a user