Fix leak in canvas code and samples #60
|
@ -22,6 +22,7 @@ def init_parser(parser):
|
||||||
parser.add_argument("-n", "--name", default="out", help="the app's name")
|
parser.add_argument("-n", "--name", default="out", help="the app's name")
|
||||||
parser.add_argument("-O", "--orca-dir", default=".")
|
parser.add_argument("-O", "--orca-dir", default=".")
|
||||||
parser.add_argument("--version", default="0.0.0", help="a version number to embed in the application bundle")
|
parser.add_argument("--version", default="0.0.0", help="a version number to embed in the application bundle")
|
||||||
|
parser.add_argument("--mtl-enable-capture", action='store_true', help="Enable Metal frame capture for the application bundle (macOS only)")
|
||||||
parser.add_argument("module", help="a .wasm file containing the application's wasm module")
|
parser.add_argument("module", help="a .wasm file containing the application's wasm module")
|
||||||
parser.set_defaults(func=shellish(make_app))
|
parser.set_defaults(func=shellish(make_app))
|
||||||
|
|
||||||
|
@ -169,8 +170,13 @@ def macos_make_app(args):
|
||||||
<string>icon.icns</string>
|
<string>icon.icns</string>
|
||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
<string>True</string>
|
<string>True</string>
|
||||||
|
"""
|
||||||
|
if args.mtl_enable_capture == True:
|
||||||
|
plist_contents += f"""
|
||||||
<key>MetalCaptureEnabled</key>
|
<key>MetalCaptureEnabled</key>
|
||||||
<true/>
|
<true/>"""
|
||||||
|
|
||||||
|
plist_contents += f"""
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue