e784f75beb
This is a reland of bf8dad281e
Original change's description:
> Add launch screen to iOS apps
>
> Bug: skia:
> Change-Id: I7ebe94213c26c31c1b0dbd1b8951f87263cd41a3
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/175826
> Commit-Queue: Jim Van Verth <jvanverth@google.com>
> Reviewed-by: Hal Canary <halcanary@google.com>
Bug: skia:
Change-Id: I111242899339186fba2b8753ee43bc0fb2ea5295
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/239437
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
36 lines
1.0 KiB
Python
36 lines
1.0 KiB
Python
#!/usr/bin/env python2.7
|
|
#
|
|
# Copyright 2017 Google Inc.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import os
|
|
import sys
|
|
|
|
# Arguments to the script:
|
|
# app path to binary to package, e.g. out/Debug/gen/dm
|
|
app, = sys.argv[1:]
|
|
|
|
out, app = os.path.split(app)
|
|
|
|
# Write a minimal Info.plist to name the package and point at the binary.
|
|
with open(os.path.join(out, app + '_Info.plist'), 'w') as f:
|
|
f.write('''
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>CFBundleVersion</key> <string>0.1.0</string>
|
|
<key>CFBundleShortVersionString</key> <string>0.1.0</string>
|
|
<key>CFBundleExecutable</key> <string>{app}</string>
|
|
<key>CFBundleIdentifier</key> <string>com.google.{app}</string>
|
|
<key>CFBundlePackageType</key> <string>APPL</string>
|
|
<key>LSRequiresIPhoneOS</key> <true/>
|
|
<key>UIDeviceFamily</key> <array>
|
|
<integer>1</integer>
|
|
<integer>2</integer>
|
|
</array>
|
|
<key>UILaunchStoryboardName</key> <string>LaunchScreen</string>
|
|
</dict>
|
|
</plist>
|
|
'''.format(app=app))
|