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