1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(tools): Add Windows to toxcore version update script

(cherry picked from commit 1d1d2b26af)
This commit is contained in:
Anthony Bilinski 2020-08-16 17:51:13 -07:00
parent 4fc0fea072
commit bd45095b5c
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -71,6 +71,13 @@ update_docker() {
cd .. cd ..
} }
update_windows() {
cd windows/cross-compile
perl -i -0pe "s|(TOXCORE_VERSION=)$VERSION_PATTERN|\${1}$@|gms" build.sh
echo "Manually update the Windows toxcore hash in windows/cross-compile/build.sh"
cd ../..
}
# exit if supplied arg is not a version # exit if supplied arg is not a version
is_version() { is_version() {
if [[ ! $@ =~ $VERSION_PATTERN ]] if [[ ! $@ =~ $VERSION_PATTERN ]]
@ -89,5 +96,6 @@ main() {
update_flatpak "$@" update_flatpak "$@"
update_travis "$@" update_travis "$@"
update_docker "$@" update_docker "$@"
update_windows "$@"
} }
main "$@" main "$@"