mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 09:41:41 -05:00
Correctly parse version in the snap.
This commit is contained in:
parent
3a928aac9f
commit
7d3919e3f7
1 changed files with 2 additions and 5 deletions
|
@ -14,12 +14,9 @@ version-script: |
|
||||||
set -x
|
set -x
|
||||||
version_file=Telegram/build/version
|
version_file=Telegram/build/version
|
||||||
version=$(sed -n "s/AppVersionStr[ ]\+\(.*\)\+/\1/p" $version_file)
|
version=$(sed -n "s/AppVersionStr[ ]\+\(.*\)\+/\1/p" $version_file)
|
||||||
alpha=$(sed -n "s/AlphaChannel[ ]\+\(.*\)\+/\1/p" $version_file)
|
beta=$(sed -n "s/BetaChannel[ ]\+\(.*\)\+/\1/p" $version_file)
|
||||||
beta=$(sed -n "s/BetaVersion[ ]\+\(.*\)\+/\1/p" $version_file)
|
|
||||||
|
|
||||||
if [ "$alpha" != "0" ]; then
|
if [ "$beta" != "0" ]; then
|
||||||
version="$version-alpha"
|
|
||||||
elif [ "$beta" != "0" ]; then
|
|
||||||
version="$version-beta"
|
version="$version-beta"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue