Fix version of teeworlds-libs to download

This allows us to update the repository without breaking old builds.
This commit is contained in:
heinrich5991 2019-03-11 16:03:34 +01:00
parent e7a716aff4
commit b0725775e8

View file

@ -20,7 +20,8 @@ def unzip(filename, where):
return z.namelist()[0] return z.namelist()[0]
def downloadAll(targets): def downloadAll(targets):
url = "https://github.com/teeworlds/teeworlds-libs/archive/master.zip" version = "4bf6dbc8c9f9b2fa89b2b5be1928f5e85bca01e6"
url = "https://github.com/teeworlds/teeworlds-libs/archive/{}.zip".format(version)
# download and unzip # download and unzip
src_package_libs = twlib.fetch_file(url) src_package_libs = twlib.fetch_file(url)
@ -31,7 +32,7 @@ def downloadAll(targets):
if not libs_dir: if not libs_dir:
print("couldn't unzip libs") print("couldn't unzip libs")
sys.exit(-1) sys.exit(-1)
libs_dir = "teeworlds-libs-master" libs_dir = "teeworlds-libs-{}".format(version)
if "sdl" in targets: if "sdl" in targets:
copy_tree(libs_dir + "/sdl/", "other/sdl/") copy_tree(libs_dir + "/sdl/", "other/sdl/")