Build the launcher when freezing on macOS as well

Can be used by the test suite
This commit is contained in:
Kovid Goyal 2020-06-21 14:37:36 +05:30
parent e07916425e
commit 2cb25cf5a8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
to_vm_excludes '/build /dist /.build-cache /tags __pycache__ /*_commands.json *.so *.pyd *.pyc'
to_vm_excludes '/build /dist /kitty/launcher/kitty /.build-cache /tags __pycache__ /*_commands.json *.so *.pyd *.pyc'

View File

@ -1146,12 +1146,12 @@ def main() -> None:
if args.action == 'clean':
clean()
return
launcher_dir = 'kitty/launcher'
with CompilationDatabase(args.incremental) as cdb:
args.compilation_database = cdb
if args.action == 'build':
build(args)
launcher_dir = 'kitty/launcher'
if is_macos:
create_minimal_macos_bundle(args, launcher_dir)
else:
@ -1164,6 +1164,7 @@ def main() -> None:
package(args, bundle_type='linux-freeze')
elif args.action == 'macos-freeze':
build(args, native_optimizations=False)
build_launcher(args, launcher_dir=launcher_dir)
package(args, bundle_type='macos-freeze')
elif args.action == 'kitty.app':
args.prefix = 'kitty.app'