Browse Source

[OSX] Added NZB association to package.py

- SABnzbd.app can open one or multiple nzb, zip, or rar files
- New icon for nzb files
- New icon added in dmg
tags/0.6.0
devrAf 16 years ago
parent
commit
ecb8effbe4
  1. BIN
      main/osx/resources/nzbfile.icns
  2. 16
      main/package.py
  3. BIN
      main/sabnzbd-template.sparseimage.zip

BIN
main/osx/resources/nzbfile.icns

Binary file not shown.

16
main/package.py

@ -315,13 +315,24 @@ if target == 'app':
APP = ['SABnzbd.py']
DATA_FILES = ['interfaces','language','osx/osx',('',glob.glob("osx/resources/*"))]
NZBFILE = dict(
CFBundleTypeExtensions = [ "nzb","zip","rar" ],
CFBundleTypeIconFile = 'nzbfile.icns',
CFBundleTypeMIMETypes = [ "text/nzb" ],
CFBundleTypeName = 'NZB File',
CFBundleTypeRole = 'Viewer',
LSTypeIsPackage = 0,
NSPersistentStoreTypeKey = 'Binary',
)
OPTIONS = {'argv_emulation': True, 'iconfile': 'osx/resources/sabnzbdplus.icns','plist': {
'NSUIElement':1,
#'CFBundleName':'SABnzbd+',
'CFBundleShortVersionString':release,
'NSHumanReadableCopyright':'The SABnzbd-Team',
'CFBundleIdentifier':'org.sabnzbd.team'}}
'CFBundleIdentifier':'org.sabnzbd.team',
'CFBundleDocumentTypes':[NZBFILE]
}}
setup(
app=APP,
data_files=DATA_FILES,
@ -369,6 +380,7 @@ if target == 'app':
#os.system(SvnRevert)
os.system(SvnRevertApp + "NSIS_Installer.nsi")
os.system(SvnRevertApp + VERSION_FILEAPP)
os.system(SvnRevertApp + VERSION_FILE)
os.system(SvnUpdateApp)
elif target == 'binary':

BIN
main/sabnzbd-template.sparseimage.zip

Binary file not shown.
Loading…
Cancel
Save