Skip to content

Commit

Permalink
Prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef Abou-Kewik committed Oct 1, 2019
1 parent 3d08dc2 commit c9d0f56
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
20 changes: 16 additions & 4 deletions osx/build_app.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
#!/bin/sh
#!/bin/bash

set -o nounset
set -o errexit
set -o functrace

trap "exit" INT
failure() {
local lineno=$1
local msg=$2
echo "Failed at $lineno: $msg"
}
trap 'failure ${LINENO} "$BASH_COMMAND"' ERR

export PATH=$HOME/.new_local/bin:$HOME/gtk/inst/bin:$PATH

Expand Down Expand Up @@ -52,7 +64,7 @@ cp $INSTROOT/share/themes/Mac/gtk-3.0/gtk-keys.css $RES/share/themes/Meld-Mojave
cp $INSTROOT/share/themes/Mac/gtk-3.0/gtk-keys.css $RES/share/themes/Meld-Mojave-light/gtk-3.0/gtk-keys.css

# meld specific resources
mkdir $RES/share/meld
mkdir -p $RES/share/meld
rsync -r -t data/icons/* $RES/share/icons
rsync -r -t data/meld.css $RES/share/meld
rsync -r -t data/styles/meld-dark.xml $RES/share/gtksourceview-4/styles
Expand All @@ -70,9 +82,9 @@ rm -fr $RES/share/icons/Adwaita/96x96

# copy fontconfig configuration files
mkdir -p $RES/etc/fontconfig/conf.d
cp $INSTROOT/etc/fonts/fonts.conf $RES/etc/fontconfig
[ -f $INSTROOT/etc/fonts/fonts.conf ] && cp $INSTROOT/etc/fonts/fonts.conf $RES/etc/fontconfig
for i in $(find $INSTROOT/etc/fonts/conf.d); do
cp $INSTROOT/share/fontconfig/conf.avail/$(basename $i) $RES/etc/fontconfig/conf.d
cp $INSTROOT/share/fontconfig/conf.avail/$(basename $i) $RES/etc/fontconfig/conf.d || true
done

# copy main libraries
Expand Down
3 changes: 0 additions & 3 deletions osx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ def frozen():


def uninstalled():
# Always use frozen when building...
return frozen()

global DATADIR, LOCALEDIR, DATADIR_IS_UNINSTALLED

melddir = Path(__file__).resolve().parent.parent
Expand Down
5 changes: 3 additions & 2 deletions setup_py2app.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
'lib/girepository-1.0',
'share/fontconfig',
'share/glib-2.0',
'share/gtksourceview-3.0',
'share/gtksourceview-4',
#'share/icons',
]

Expand Down Expand Up @@ -122,7 +122,8 @@
'libgobject-2.0.0.dylib'
'libgtk-3.0.dylib'
'libgtkmacintegration-gtk3.2.dylib'
'libgtksourceview-3.0.1.dylib'
'libgtksourceview-4.dylib'
'libgtksourceview-4.0.dylib'
'libharfbuzz.0.dylib'
'libpango-1.0.0.dylib'
'libpangocairo-1.0.0.dylib'
Expand Down

0 comments on commit c9d0f56

Please sign in to comment.