...
This commit is contained in:
6
setup.py
6
setup.py
@@ -881,9 +881,11 @@ def safe_makedirs(path: str) -> None:
|
|||||||
def update_go_generated_files(args: Options, kitty_exe: str) -> None:
|
def update_go_generated_files(args: Options, kitty_exe: str) -> None:
|
||||||
# update all the various auto-generated go files, if needed
|
# update all the various auto-generated go files, if needed
|
||||||
if args.verbose:
|
if args.verbose:
|
||||||
print('Updating Go generated files...')
|
print('Updating Go generated files...', flush=True)
|
||||||
cp = subprocess.run([kitty_exe, '+launch', os.path.join(base, 'gen-go-code.py')], stdout=subprocess.PIPE)
|
cp = subprocess.run([kitty_exe, '+launch', os.path.join(base, 'gen-go-code.py')], stdout=subprocess.PIPE)
|
||||||
if cp.returncode != 0:
|
if cp.returncode != 0:
|
||||||
|
import traceback
|
||||||
|
traceback.print_stack()
|
||||||
raise SystemExit(cp.returncode)
|
raise SystemExit(cp.returncode)
|
||||||
|
|
||||||
|
|
||||||
@@ -895,8 +897,6 @@ def build_kitty_tool(args: Options, launcher_dir: str, for_freeze: bool = False)
|
|||||||
raise SystemExit('The go tool was not found on this system. Install Go')
|
raise SystemExit('The go tool was not found on this system. Install Go')
|
||||||
update_go_generated_files(args, os.path.join(launcher_dir, appname))
|
update_go_generated_files(args, os.path.join(launcher_dir, appname))
|
||||||
cmd = [go, 'build', '-v']
|
cmd = [go, 'build', '-v']
|
||||||
if args.verbose:
|
|
||||||
cmd.append('-x')
|
|
||||||
ld_flags = [f"-X 'kitty.VCSRevision={get_vcs_rev_define()}'"]
|
ld_flags = [f"-X 'kitty.VCSRevision={get_vcs_rev_define()}'"]
|
||||||
if for_freeze:
|
if for_freeze:
|
||||||
ld_flags.append("-X 'kitty.IsFrozenBuild=true")
|
ld_flags.append("-X 'kitty.IsFrozenBuild=true")
|
||||||
|
|||||||
Reference in New Issue
Block a user