From 2cb25cf5a8ab75c71037c37e66c6e3b710293569 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 21 Jun 2020 14:37:36 +0530 Subject: [PATCH] Build the launcher when freezing on macOS as well Can be used by the test suite --- bypy/rsync.conf | 2 +- setup.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bypy/rsync.conf b/bypy/rsync.conf index 3c73a4516..9b2165745 100644 --- a/bypy/rsync.conf +++ b/bypy/rsync.conf @@ -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' diff --git a/setup.py b/setup.py index 4961eaff0..bd924ed87 100755 --- a/setup.py +++ b/setup.py @@ -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'