Skip to content

Commit 5992f4d

Browse files
committed
iOS (and mac) support
1 parent 32946cb commit 5992f4d

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.github/workflows/multi-platform.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
- name: Windows
1616
os: windows-latest
1717

18+
- name: macOS
19+
os: macos-latest
20+
1821
- name: Android32
1922
os: ubuntu-latest
2023
target: Android32
@@ -23,6 +26,10 @@ jobs:
2326
os: ubuntu-latest
2427
target: Android64
2528

29+
- name: iOS
30+
os: macos-latest
31+
target: iOS
32+
2633
name: ${{ matrix.config.name }}
2734
runs-on: ${{ matrix.config.os }}
2835

@@ -32,6 +39,8 @@ jobs:
3239
- name: Build the mod
3340
uses: geode-sdk/build-geode-mod@main
3441
with:
42+
cli: 'nightly'
43+
sdk: 'nightly'
3544
bindings-ref: main
3645
combine: true
3746
target: ${{ matrix.config.target }}

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
cmake_minimum_required(VERSION 3.21)
22
set(CMAKE_CXX_STANDARD 20)
33
set(CMAKE_CXX_STANDARD_REQUIRED ON)
4-
set(CMAKE_OSX_ARCHITECTURES "x86_64")
4+
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "iOS" OR IOS)
5+
set(CMAKE_OSX_ARCHITECTURES "arm64")
6+
else()
7+
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
8+
endif()
59
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
610

711
project(EditorSounds VERSION 1.0.0)

mod.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
"geode": "4.2.0",
33
"gd": {
44
"win": "2.2074",
5-
"android": "2.2074"
5+
"android": "2.2074",
6+
"mac": "2.2074",
7+
"ios": "2.2074"
68
},
7-
"version": "v1.1.9",
9+
"version": "v1.1.10",
810
"id": "alphalaneous.editorsounds",
911
"name": "Editor Sounds",
1012
"developer": "Alphalaneous",

0 commit comments

Comments
 (0)