diff --git a/osx/image/sabnzbd.png b/osx/image/sabnzbd.png new file mode 100644 index 0000000..855505c Binary files /dev/null and b/osx/image/sabnzbd.png differ diff --git a/osx/image/sabnzbd_leopard.png b/osx/image/sabnzbd_leopard.png index 8ed8a95..fe78134 100644 Binary files a/osx/image/sabnzbd_leopard.png and b/osx/image/sabnzbd_leopard.png differ diff --git a/osx/image/sabnzbd_lion.png b/osx/image/sabnzbd_lion.png deleted file mode 100644 index 38f1131..0000000 Binary files a/osx/image/sabnzbd_lion.png and /dev/null differ diff --git a/package.py b/package.py index 9076a46..c02722e 100755 --- a/package.py +++ b/package.py @@ -382,16 +382,18 @@ if target == 'app': # Select OSX version specific background image # Take care to preserve the special attributes of the background image file if [int(n) for n in platform.mac_ver()[0].split('.')] >= [10, 7, 0]: - # Lion and higher - f = open('osx/image/sabnzbd_lion.png', 'rb') + # Lion and higher: generates SnowLeopard/Lion DMG + f = open('osx/image/sabnzbd.png', 'rb') png = f.read() f.close() - f = open('/Volumes/SABnzbd/sabnzbd.png', 'wb') - f.write(png) - f.close() else: - # Snow Leopard and lower - pass + # Snow Leopard and lower: generates Leopard DMG + f = open('osx/image/sabnzbd_leopard.png', 'rb') + png = f.read() + f.close() + f = open('/Volumes/SABnzbd/sabnzbd.png', 'wb') + f.write(png) + f.close() # Rename the volume fp = open('mount.log', 'r')