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:
parent
4fc0fea072
commit
bd45095b5c
|
@ -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 "$@"
|
||||
|
|
Loading…
Reference in New Issue
Block a user