From 3c1d7da6989211f11a78c98bf5db9b5621d27725 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 27 Jun 2017 13:57:03 +0100 Subject: [PATCH] [Packaging] Apply fixes to OSX app scripts * Fix path to dist dir * Rename dylib with new soversion for lt 1.1.x * Create Info.plist with version and year automatically --- packaging/osx/{Info.plist => Info.plist.in} | 8 ++++---- packaging/osx/deluge | 0 packaging/osx/deluge.bundle | 5 ++--- packaging/osx/make-app | 5 +++++ 4 files changed, 11 insertions(+), 7 deletions(-) rename packaging/osx/{Info.plist => Info.plist.in} (89%) mode change 100644 => 100755 packaging/osx/deluge diff --git a/packaging/osx/Info.plist b/packaging/osx/Info.plist.in similarity index 89% rename from packaging/osx/Info.plist rename to packaging/osx/Info.plist.in index 4d36c2ff7..7021497a2 100644 --- a/packaging/osx/Info.plist +++ b/packaging/osx/Info.plist.in @@ -11,13 +11,13 @@ CFBundleExecutable Deluge CFBundleShortVersionString - 2.0-dev + %VERSION% CFBundleVersion - 2.0-dev + %VERSION% CFBundleGetInfoString - 2.0-dev (c) 2008-2017 Deluge Team http://deluge-torrent.org/ + %VERSION% (c) 2008-%YEAR% Deluge Team http://deluge-torrent.org/ NSHumanReadableCopyright - Copyright 2008-2017 Deluge Team + Copyright 2008-%YEAR% Deluge Team CFBundleDevelopmentRegion English CFBundleInfoDictionaryVersion diff --git a/packaging/osx/deluge b/packaging/osx/deluge old mode 100644 new mode 100755 diff --git a/packaging/osx/deluge.bundle b/packaging/osx/deluge.bundle index c65e1f79a..c4abdfc33 100644 --- a/packaging/osx/deluge.bundle +++ b/packaging/osx/deluge.bundle @@ -23,17 +23,16 @@ ${prefix}/lib/pango/1.8.0/modules/pango*.so ${prefix}/lib/libboost_system.dylib ${prefix}/lib/libboost_python.dylib - ${prefix}/lib/libtorrent-rasterbar.8.dylib + ${prefix}/lib/libtorrent-rasterbar.9.dylib ${prefix}/lib/libssl.1.0.0.dylib ${prefix}/lib/libz.1.2.8.dylib - ${project}/../dist/deluge.app/Contents/Resources/ + ${project}/../../dist/deluge.app/Contents/Resources/ ${prefix}/lib/pygtk/2.0/ ${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/engines/libclearlooks.so ${prefix}/share/themes/Clearlooks ${prefix}/share/themes/Mac - ${project}/gtkrc ${project}/deluge.icns ${project}/torrent.icns diff --git a/packaging/osx/make-app b/packaging/osx/make-app index ebba5e73e..1353aba63 100644 --- a/packaging/osx/make-app +++ b/packaging/osx/make-app @@ -3,6 +3,8 @@ APPDIR="./app/Deluge.app" RSCDIR="${APPDIR}/Contents/Resources" LIBDIR="${RSCDIR}/lib" +VERSION=$(cat ../../RELEASE-VERSION) +YEAR=$(date +'%Y') function msg() { echo "==> $1"; } @@ -20,6 +22,9 @@ fi chmod 755 deluge deluge-web deluge-console deluged +msg "Create Info.plist for Deluge $version" +sed -e s/%VERSION%/$VERSION/ -e s/%YEAR%/$YEAR/ Info.plist.in > Info.plist + msg "Calling gtk-mac-bundler" gtk-mac-bundler deluge.bundle