Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(tools): Add Windows to toxcore version update script
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonybilinski committed Nov 22, 2020
1 parent 9fb96b0 commit 3ff53e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/update-toxcore-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]]
Expand All @@ -89,5 +96,6 @@ main() {
update_flatpak "$@"
update_travis "$@"
update_docker "$@"
update_windows "$@"
}
main "$@"

0 comments on commit 3ff53e8

Please sign in to comment.