trying out online update notifications

This commit is contained in:
Jaap Marsman 2022-08-08 16:55:30 +08:00
parent b9a82025e1
commit b9622d0632
3 changed files with 5 additions and 3 deletions

View File

@ -16,7 +16,9 @@ func _on_button_update_check_pressed():
$HTTPRequest.request("https://raw.githubusercontent.com/hobbesjaap/wellbeingapp/main/version_stuff.csv")
#func _on_HTTPRequest_request_completed(result, response_code, headers, body):
func _on_request_completed(result, response_code, headers, body):
func _on_HTTPRequest_request_completed(result, response_code, headers, body):
#func _on_request_completed(result, response_code, headers, body):
var json = JSON.parse(body.get_string_from_utf8())
program_info.web_release_version = json.result
if program_info.web_release_version > program_info.release_version:
print("There's an update!")

1
version_info.csv Normal file
View File

@ -0,0 +1 @@
1
1 1

View File

@ -1 +0,0 @@
2
1 2