Skip to content

Commit

Permalink
Add distrib script for mac/osx.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed Feb 3, 2024
1 parent e33d2f8 commit db0bf4e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions misc/distrib_osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@


cd ..

rm -rf dist/osx
mkdir dist/osx
rm bin/Mac/*

declare -a langs=("nl" "en")
for lang in "${langs[@]}"
do

mkdir -p dist/osx/$lang/mods/media
cp tpl/$lang/* dist/osx/$lang/
rm mods/media/libctrmedia.dylib
ISO="$lang" make -f makefile.mac clean
ISO="$lang" OS="Mac" make -f makefile.mac
ISO="$lang" PACKAGE="media" NAME="libctrmedia.dylib" make -f makefile.mac plugin
mv ./bin/Mac/ctr$lang dist/osx/$lang/ctr$lang
mv ./mods/media/libctrmedia.dylib dist/osx/$lang/mods/media/

done

0 comments on commit db0bf4e

Please sign in to comment.