Commit d2704c39 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

Package osx app with platypus

parent 63e332e9
......@@ -44,7 +44,7 @@ def main():
os.chdir(DISTPATH)
filename = 'agkyra-%s-%s' % (version, osarg)
if osarg.startswith('osx'):
base_dir = 'agkyra.app'
base_dir = 'Agkyra.app'
arch_name = "%s.zip" % filename
os.system("zip -ry %s %s" % (arch_name, base_dir))
else:
......
......@@ -15,6 +15,16 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
cd "$(dirname "$0")"
if [ -z "$1" ]
then
echo "Usage: $0 <path_to_libsqlite3.dylib>"
exit
fi
cd dist/agkyra.app/Contents/MacOS
DIST=dist
LIBDIR=$DIST/agkyra/lib
cp $(python -c "import _sqlite3; print _sqlite3.__file__") $LIBDIR
cp $1 $LIBDIR
cd $LIBDIR
install_name_tool -change '/usr/lib/libsqlite3.dylib' '@loader_path/libsqlite3.dylib' _sqlite3.so
#!/usr/bin/env bash
# Copyright (C) 2015 GRNET S.A.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
cd "$(dirname "$0")"
ROOTPATH=$(pwd)
DIST=$ROOTPATH/dist
LOGO=$DIST/agkyra/lib/agkyra/resources/nwgui/static/images/logo.icns
IDENT=org.synnefo.agkyra
VERSION=$(python -c "import agkyra; print agkyra.__version__")
platypus -a Agkyra -u 'GRNET S.A.' -o None -i $LOGO -Q $LOGO -p /usr/bin/env -V $VERSION -f $DIST/agkyra/lib -I $IDENT -B -R $DIST/agkyra/agkyra $DIST/Agkyra.app
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment