#Anyone know how to update the game?

1 messages · Page 1 of 1 (latest)

lone pivot
#

Hey! I've made a game, but as part of the beta I'd like it to self update, anyone know how I can download files. specifically exe's using godot? I can handle the rest just can't find someplace to store the files, as onedrive has changed how they do direct download links. Thank you in advance!

valid dust
# lone pivot Hey! I've made a game, but as part of the beta I'd like it to self update, anyon...

if its just how to download files, ive been doing something like this:


var http_s = []
func download(link, path):
    var http = HTTPRequest.new()
    add_child(http)
    http_s.append(http)
    http.connect("request_completed", _http_request_completed)

    http.set_download_file(path)
    var request = http.request(link)
    print("Downloading from " + link + " to " + path)
    if request != OK:
        push_error("Http request error")

func _http_request_completed(result, _response_code, _headers, _body):
    if result != OK:
        push_error("Download Failed")
#

if youre asking where to store files im sure there a bunch of places that would work, but ive used github releases to download and that works

#

you can make the link: https://github.com/user/repo/releases/latest/download/file.exe