Skip to content

Commit

Permalink
Download SDL using HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
orazioedoardo authored and jorio committed Jul 22, 2022
1 parent 5415e97 commit 9153a8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def zipdir(zipname, topleveldir, arc_topleveldir):
def prepare_dependencies_windows():
rmtree_if_exists(F"{libs_dir}/SDL2-{sdl_ver}")

sdl_zip_path = get_package(F"http://libsdl.org/release/SDL2-devel-{sdl_ver}-VC.zip")
sdl_zip_path = get_package(F"https://libsdl.org/release/SDL2-devel-{sdl_ver}-VC.zip")
shutil.unpack_archive(sdl_zip_path, libs_dir)

def prepare_dependencies_macos():
Expand All @@ -195,7 +195,7 @@ def prepare_dependencies_macos():

rmtree_if_exists(sdl2_framework_target_path)

sdl_dmg_path = get_package(F"http://libsdl.org/release/SDL2-{sdl_ver}.dmg")
sdl_dmg_path = get_package(F"https://libsdl.org/release/SDL2-{sdl_ver}.dmg")

# Mount the DMG and copy SDL2.framework to extern/
with tempfile.TemporaryDirectory() as mount_point:
Expand All @@ -214,7 +214,7 @@ def prepare_dependencies_linux():
sdl_build_dir = F"{sdl_source_dir}/build"
rmtree_if_exists(sdl_source_dir)

sdl_zip_path = get_package(F"http://libsdl.org/release/SDL2-{sdl_ver}.tar.gz")
sdl_zip_path = get_package(F"https://libsdl.org/release/SDL2-{sdl_ver}.tar.gz")
shutil.unpack_archive(sdl_zip_path, libs_dir)

with chdir(sdl_source_dir):
Expand Down

0 comments on commit 9153a8e

Please sign in to comment.