Skip to content

Commit

Permalink
Fixed|Builder: Generate feed with the new OS X Apps packages
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 28, 2014
1 parent 0defe1c commit 7202861
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions distrib/builder/event.py
Expand Up @@ -41,17 +41,16 @@ def __init__(self, build=None, latestAvailable=False):
self.packages = ['doomsday', 'doomsday_app', 'doomsday_shell_app', 'fmod']

self.packageName = {'doomsday': 'Doomsday',
'doomsday_apps': 'OS X Apps',
'doomsday_app': 'Doomsday Engine.app',
'doomsday_shell_app': 'Doomsday Shell.app',
'fmod': 'FMOD Ex Audio Plugin'}

if self.num >= 816: # Added Mac OS X 10.8.
# Platforms: Name File ext sys_id()
self.oses = [('Windows (x86)', '.exe', 'win32-32bit'),
('OS X 10.8+ Apps (x86_64)', 'apps-macx8.dmg', 'macx8-64bit'),
('OS X 10.8+ (x86_64)', '.dmg', 'macx8-64bit'),
('OS X 10.6+ Apps (x86_64/i386)', 'apps-macx6.dmg', 'darwin-64bit'),
('OS X 10.6+ (x86_64/i386)', 'mac10_6.dmg', 'darwin-64bit'),
('OS X 10.8+ (x86_64)', ('.dmg', 'macx8.dmg'), 'macx8-64bit'),
('OS X 10.6+ (x86_64/i386)', ('mac10_6.dmg', 'macx6.dmg'), 'darwin-64bit'),
('OS X 10.4+ (ppc/i386)', '32bit.dmg', 'darwin-32bit'),
('Ubuntu (x86_64)', 'amd64.deb', 'linux2-64bit'),
('Ubuntu (x86)', 'i386.deb', 'linux2-32bit'),
Expand Down Expand Up @@ -95,6 +94,7 @@ def package_type(self, name):
return 'distribution'

def package_from_filename(self, name):
if 'apps-macx' in name: return 'doomsday_apps'
if name.endswith('.zip'):
if 'doomsday_osx' in name:
return 'doomsday_app'
Expand All @@ -107,9 +107,14 @@ def package_from_filename(self, name):

def os_from_filename(self, name):
found = None
for n, ext, ident in self.oses:
if name.endswith(ext) or ident in name:
found = (n, ext, ident)
for n, osExt, ident in self.oses:
if type(osExt) == 'tuple':
exts = osExt
else:
exts = [osExt]
for ext in exts:
if name.endswith(ext) or ident in name:
found = (n, ext, ident)
if n.startswith('OS X 10.') and name.endswith('.zip'):
osx = '_osx' + n[8] + '_'
if osx in name:
Expand Down

0 comments on commit 7202861

Please sign in to comment.