update oml to 10.10 version

This commit is contained in:
Jan Gerber 2016-02-06 14:26:32 +01:00
parent 8c9b09577d
commit 6c6c3e68c6
5 changed files with 33 additions and 18 deletions

View File

@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>15D21</string>
<string>15C50</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.6</string>
<string>0.7</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
@ -31,7 +31,7 @@
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>7C68</string>
<string>7C1002</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
@ -39,11 +39,11 @@
<key>DTSDKName</key>
<string>macosx10.11</string>
<key>DTXcode</key>
<string>0720</string>
<string>0721</string>
<key>DTXcodeBuild</key>
<string>7C68</string>
<string>7C1002</string>
<key>LSMinimumSystemVersion</key>
<string>10.11</string>
<string>10.10</string>
<key>LSUIElement</key>
<true/>
<key>NSHumanReadableCopyright</key>

View File

@ -20,6 +20,18 @@ def makedirs(dirname):
if not os.path.exists(dirname):
os.makedirs(dirname)
def get_platform():
name = sys.platform
if name.startswith('darwin'):
name = 'darwin64'
elif name.startswith('linux'):
import platform
if platform.architecture()[0] == '64bit':
name = 'linux64'
else:
name = 'linux32'
return name
class Handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_OPTIONS(self):
self.send_response(200, 'OK')
@ -79,17 +91,20 @@ class Install(Thread):
release = self.get_release()
self.status["release"] = release
self.status["progress"] = 0
platform = get_platform()
for module in sorted(release['modules']):
package_tar = release['modules'][module]['name']
url = self.release_url.replace('release.json', package_tar)
self.download(url, package_tar)
if release['modules'][module].get('platform', platform) == platform:
package_tar = release['modules'][module]['name']
url = self.release_url.replace('release.json', package_tar)
self.download(url, package_tar)
self.status["step"] = 'Installing...'
for module in sorted(release['modules']):
package_tar = release['modules'][module]['name']
tar = tarfile.open(package_tar)
tar.extractall()
tar.close()
os.unlink(package_tar)
if release['modules'][module].get('platform', platform) == platform:
package_tar = release['modules'][module]['name']
tar = tarfile.open(package_tar)
tar.extractall()
tar.close()
os.unlink(package_tar)
os.symlink('openmedialibrary/ctl', 'ctl')
makedirs('data')
with open('data/release.json', 'w') as fd:

View File

@ -10,7 +10,7 @@
</data>
<key>Resources/Assets.car</key>
<data>
J0bcbd6bu3teEBZKNEEQTcykNSI=
/nndfnnD+E4e+8Ei7vZtKg7drFI=
</data>
<key>Resources/Base.lproj/MainMenu.nib</key>
<dict>
@ -31,7 +31,7 @@
</data>
<key>Resources/install.py</key>
<data>
8P8EjUEoWuHCRIRvQTi7vbDhGoM=
O7T+CZEr88aRYb4+kN3/DnjlfN0=
</data>
<key>Resources/js/install.js</key>
<data>
@ -135,7 +135,7 @@
</data>
<key>Resources/Assets.car</key>
<data>
J0bcbd6bu3teEBZKNEEQTcykNSI=
/nndfnnD+E4e+8Ei7vZtKg7drFI=
</data>
<key>Resources/Base.lproj/MainMenu.nib</key>
<dict>
@ -156,7 +156,7 @@
</data>
<key>Resources/install.py</key>
<data>
8P8EjUEoWuHCRIRvQTi7vbDhGoM=
O7T+CZEr88aRYb4+kN3/DnjlfN0=
</data>
<key>Resources/js/install.js</key>
<data>