Browse Source

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.

(cherry picked from commit 1f1cb2f5f9)
reviewable/pr6259/r7
Anthony Bilinski 5 years ago
parent
commit
4fc0fea072
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 2
      tools/update-toxcore-version.sh

2
tools/update-toxcore-version.sh

@ -51,7 +51,7 @@ update_osx() { @@ -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…
Cancel
Save