From bd45095b5c14f45a0b84d3b99cc626679f6e8c97 Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Sun, 16 Aug 2020 17:51:13 -0700 Subject: [PATCH] fix(tools): Add Windows to toxcore version update script (cherry picked from commit 1d1d2b26af2a176f1861126cf5342a810843f988) --- tools/update-toxcore-version.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/update-toxcore-version.sh b/tools/update-toxcore-version.sh index dcd416cde..0b61cfeb8 100755 --- a/tools/update-toxcore-version.sh +++ b/tools/update-toxcore-version.sh @@ -71,6 +71,13 @@ update_docker() { 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 is_version() { if [[ ! $@ =~ $VERSION_PATTERN ]] @@ -89,5 +96,6 @@ main() { update_flatpak "$@" update_travis "$@" update_docker "$@" + update_windows "$@" } main "$@"