Commit 98237363 authored by gkorf's avatar gkorf

Script to fix sqlite in osx

parent 5ed9e99a
......@@ -51,10 +51,8 @@ the Python framework can be created with PyInstaller.
work properly. You can build agkyra with a newer sqlite3
library. Assuming you have installed one (eg with brew) under
`/usr/local/opt/sqlite`, you need to build with environment variable
`DYLD_LIBRARY_PATH=/usr/local/opt/sqlite/lib`. Then go to
`dist/agkyra.app/Contents/MacOS` and run `install_name_tool -change
'/usr/lib/libsqlite3.dylib' '@loader_path/libsqlite3.dylib'
_sqlite3.so`
`DYLD_LIBRARY_PATH=/usr/local/opt/sqlite/lib`. Then run
`fix_sqlite_osx.sh`.
3. Make an archive (zip, or gzipped tar) with `python bundle.py <platform>`.
......
#!/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/>.
CURPWD=$(pwd)
cd "$(dirname "$0")"
cd dist/agkyra.app/Contents/MacOS
install_name_tool -change '/usr/lib/libsqlite3.dylib' '@loader_path/libsqlite3.dylib' _sqlite3.so
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