mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
Fix version of teeworlds-libs to download
This allows us to update the repository without breaking old builds.
This commit is contained in:
parent
e7a716aff4
commit
b0725775e8
|
@ -20,7 +20,8 @@ def unzip(filename, where):
|
|||
return z.namelist()[0]
|
||||
|
||||
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
|
||||
src_package_libs = twlib.fetch_file(url)
|
||||
|
@ -31,7 +32,7 @@ def downloadAll(targets):
|
|||
if not libs_dir:
|
||||
print("couldn't unzip libs")
|
||||
sys.exit(-1)
|
||||
libs_dir = "teeworlds-libs-master"
|
||||
libs_dir = "teeworlds-libs-{}".format(version)
|
||||
|
||||
if "sdl" in targets:
|
||||
copy_tree(libs_dir + "/sdl/", "other/sdl/")
|
||||
|
|
Loading…
Reference in a new issue