Skip to content

Commit 6f16a33

Browse files
committed
macos: embed SDL2 framework in app bundle
1 parent b51c2b8 commit 6f16a33

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.ci/macos/build.sh

+6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ cp misc/macos/Info.plist $ARTIFACT/avocado.app/Contents
2727
# Copy icon
2828
mv misc/avocado.icns $ARTIFACT/avocado.app/Contents/Resources/
2929

30+
# Copy & fix dylibs
31+
dylibbundler -od -b \
32+
-x $ARTIFACT/avocado.app/Contents/MacOS/avocado \
33+
-d $ARTIFACT/avocado.app/Contents/Frameworks/ \
34+
-p @executable_path/../Frameworks/
35+
3036
# Remove .gitignore
3137
find $ARTIFACT -type f -name .gitignore -exec rm {} \;
3238

.ci/macos/install-dependencies.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ tar xzf premake-$PREMAKE_VERSION-macosx.tar.gz
88
mv premake5 /usr/local/bin/
99
rm premake-$PREMAKE_VERSION-macosx.tar.gz
1010

11-
# Download SDL2 and ccache
11+
# Download dependencies
1212
brew update > /dev/null
13-
brew install sdl2 ccache
13+
brew install sdl2 ccache dylibbundler

0 commit comments

Comments
 (0)