diff --git a/mac-setup/.gitignore b/mac-setup/.gitignore new file mode 100644 index 00000000..e95836ab --- /dev/null +++ b/mac-setup/.gitignore @@ -0,0 +1,3 @@ +macdylibbundler +Xournal++.app + diff --git a/mac-setup/build-app.sh b/mac-setup/build-app.sh new file mode 100755 index 00000000..d384e6c3 --- /dev/null +++ b/mac-setup/build-app.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +## Mac Setup script +## 1. do the build, will not be called from this script +## 2. call this script +## 3. an .app will be packed + +# go to script directory +cd "${0%/*}" + +# delete old app, if there +echo "clean old app" + +rm -rf ./Xournal++.app + +echo "prepare macdylibbundler" +if [ ! -d "macdylibbundler" ]; then + git clone https://github.com/auriamg/macdylibbundler.git macdylibbundler + cd macdylibbundler +else + cd macdylibbundler + git pull +fi + +make -j 2 + +cd .. +echo "prepare package" + +mkdir -p Xournal++.app/Contents/MacOS +cp ../build/src/xournalpp ./Xournal++.app/Contents/MacOS/xournalpp +./macdylibbundler/macdylibbundler -od -b -x ./Xournal++.app/Contents/MacOS/xournalpp -d ./Xournal++.app/Contents/libs/ + +echo "finished"