Merge branch 'osx_to_macos' of https://github.com/Luflosi/kitty
This commit is contained in:
commit
4085fe2e8e
@ -79,7 +79,7 @@ jobs:
|
||||
- run: python3 logo/make.py
|
||||
- run: python3 setup.py build --debug --verbose
|
||||
- run: python3 test.py
|
||||
- run: python3 setup.py osx-bundle
|
||||
- run: python3 setup.py macos-bundle
|
||||
|
||||
|
||||
workflows:
|
||||
|
||||
@ -16,7 +16,7 @@ with open('terminfo/kitty.terminfo', 'w') as f:
|
||||
|
||||
os.environ['TERMINFO'] = os.path.join(base, 'terminfo')
|
||||
subprocess.check_call(['tic', '-x', 'terminfo/kitty.terminfo'])
|
||||
# On OS X tic puts the compiled database into a different directory
|
||||
# On macOS tic puts the compiled database into a different directory
|
||||
try:
|
||||
os.mkdir('terminfo/78')
|
||||
except FileExistsError:
|
||||
|
||||
@ -152,7 +152,7 @@ run_app.first_window_callback = lambda window_handle: None
|
||||
run_app.initial_window_size_func = initial_window_size_func
|
||||
|
||||
|
||||
def ensure_osx_locale():
|
||||
def ensure_macos_locale():
|
||||
# Ensure the LANG env var is set. See
|
||||
# https://github.com/kovidgoyal/kitty/issues/90
|
||||
from .fast_data_types import cocoa_get_lang
|
||||
@ -214,7 +214,7 @@ def _main():
|
||||
except AttributeError:
|
||||
pass # python compiled without threading
|
||||
if is_macos:
|
||||
ensure_osx_locale()
|
||||
ensure_macos_locale()
|
||||
try:
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
except Exception:
|
||||
|
||||
4
setup.py
4
setup.py
@ -768,7 +768,7 @@ def option_parser(): # {{{
|
||||
'action',
|
||||
nargs='?',
|
||||
default='build',
|
||||
choices='build test linux-package kitty.app osx-bundle clean'.split(),
|
||||
choices='build test linux-package kitty.app macos-bundle osx-bundle clean'.split(),
|
||||
help='Action to perform (default is build)'
|
||||
)
|
||||
p.add_argument(
|
||||
@ -849,7 +849,7 @@ def main():
|
||||
if not os.path.exists(os.path.join(base, 'docs/_build/html')):
|
||||
run_tool(['make', 'docs'])
|
||||
package(args)
|
||||
elif args.action == 'osx-bundle':
|
||||
elif args.action in ('macos-bundle', 'osx-bundle'):
|
||||
build(args, native_optimizations=False)
|
||||
package(args, for_bundle=True)
|
||||
elif args.action == 'kitty.app':
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user