Browse Source

Fix package.py for OSX.

tags/0.6.0
ShyPike 15 years ago
parent
commit
7b947b5ce0
  1. 8
      package.py

8
package.py

@ -341,11 +341,14 @@ if target == 'app':
os.system("rm -rf interfaces/Concept>/dev/null")
os.system("rm -rf interfaces/iphone>/dev/null")
#Create MO files
os.system('./tools/make_mo.py')
#build SABnzbd.py
sys.argv[1] = 'py2app'
APP = ['SABnzbd.py']
DATA_FILES = ['interfaces', 'locale', 'email', ('',glob.glob("osx/resources/*"))]
DATA_FILES = PairList(['interfaces/', 'locale/', 'email/', 'osx/resources/'])
NZBFILE = dict(
CFBundleTypeExtensions = [ "nzb","zip","rar" ],
CFBundleTypeIconFile = 'nzbfile.icns',
@ -394,9 +397,6 @@ if target == 'app':
#Create src tar.gz
os.system("tar -czf %s --exclude \".bzr\" --exclude \"sab*.zip\" --exclude \"SAB*.tar.gz\" --exclude \"*.sparseimage\" ./>/dev/null" % (fileOSr) )
#Create MO files
os.system('./tools/make_mo.py')
#Copy src tar.gz to mounted sparseimage
os.system("cp %s /Volumes/SABnzbd/Sources/>/dev/null" % (fileOSr))

Loading…
Cancel
Save