| # Copyright 2017 Google Inc. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| # Arguments to the script: |
| # app path to binary to package, e.g. out/Debug/gen/dm |
| 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: |
| <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> |
| <key>UILaunchStoryboardName</key> <string>LaunchScreen</string> |