From 982373631dfdaeac1678d040d4c08aa9f4934d0e Mon Sep 17 00:00:00 2001 From: gkorf <gkorf@olgas-MacBook-Pro.local> Date: Tue, 20 Oct 2015 17:38:52 +0300 Subject: [PATCH] Script to fix sqlite in osx --- README.md | 6 ++---- fix_sqlite_osx.sh | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100755 fix_sqlite_osx.sh diff --git a/README.md b/README.md index 951b426..5a07249 100644 --- a/README.md +++ b/README.md @@ -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>`. diff --git a/fix_sqlite_osx.sh b/fix_sqlite_osx.sh new file mode 100755 index 0000000..392667a --- /dev/null +++ b/fix_sqlite_osx.sh @@ -0,0 +1,21 @@ +#!/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 -- GitLab