From cd4b6dac690113fd322a59d33eb161eabd5cfae3 Mon Sep 17 00:00:00 2001 From: Andreas Butti Date: Tue, 1 Jan 2019 11:55:41 +0100 Subject: [PATCH] Mac Packaging --- mac-setup/.gitignore | 3 +++ mac-setup/build-app.sh | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 mac-setup/.gitignore create mode 100755 mac-setup/build-app.sh 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"