Skip to content

Commit cc5edcf

Browse files
committed
fixup! Upgrade to use SDL3 version of libtcod
1 parent cd10465 commit cc5edcf

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ jobs:
4545
runs-on: ubuntu-latest
4646
steps:
4747
- name: APT update
48-
run: sudo apt-get update
48+
run: |
49+
sudo add-apt-repository ppa:ubuntu/libsdl3
50+
sudo apt-get update
4951
- name: Install APT dependencies
5052
run: sudo apt-get install libsdl3-dev
5153
- uses: actions/checkout@v4

build_sdl.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,16 @@ def unpack_sdl(version: str) -> Path:
130130
sdl_path /= "SDL3.framework"
131131
if sdl_path.exists():
132132
return sdl_path
133-
sdl_arcive = get_sdl_file(version)
134-
print(f"Extracting {sdl_arcive}")
135-
if sdl_arcive.suffix == ".zip":
136-
with zipfile.ZipFile(sdl_arcive) as zf:
133+
sdl_archive = get_sdl_file(version)
134+
print(f"Extracting {sdl_archive}")
135+
if sdl_archive.suffix == ".zip":
136+
with zipfile.ZipFile(sdl_archive) as zf:
137137
zf.extractall("dependencies/")
138138
elif sys.platform == "darwin":
139-
assert sdl_arcive.suffix == ".dmg"
140-
subprocess.check_call(["hdiutil", "mount", sdl_arcive])
139+
assert sdl_archive.suffix == ".dmg"
140+
subprocess.check_call(["hdiutil", "mount", sdl_archive])
141141
subprocess.check_call(["mkdir", "-p", sdl_dir])
142-
subprocess.check_call(["cp", "-r", "/Volumes/SDL3/SDL3.framework", sdl_dir])
142+
subprocess.check_call(["cp", "-r", "/Volumes/SDL3/SDL3.xcframework/macos-arm64_x86_64/SDL3.framework", sdl_dir])
143143
subprocess.check_call(["hdiutil", "unmount", "/Volumes/SDL3"])
144144
return sdl_path
145145

libtcod

Submodule libtcod updated 276 files

0 commit comments

Comments
 (0)