Add KITTY_VCS_REV for release builds as well

This commit is contained in:
Kovid Goyal
2023-02-28 19:41:28 +05:30
parent 5b46d990a2
commit cd8bb462c3
4 changed files with 10 additions and 3 deletions

View File

@@ -106,6 +106,8 @@ def build_c_extensions(ext_dir, args):
cmd = SETUP_CMD + ['macos-freeze' if ismacos else 'linux-freeze']
if args.dont_strip:
cmd.append('--debug')
if args.extra_program_data:
cmd.append(f'--vcs-rev={args.extra_program_data}')
dest = kitty_constants['appname'] + ('.app' if ismacos else '')
dest = build_frozen_launcher.prefix = os.path.join(ext_dir, dest)
cmd += ['--prefix', dest, '--full']