@@ -248,7 +248,9 @@ def build_macos_desktop_app(
248
248
249
249
info ("Building tauri config" )
250
250
tauri_config_path = pathlib .Path (DESKTOP_PACKAGE_PATH ) / "build-config.json"
251
- tauri_config_path .write_text (macos_tauri_config (cli_path = cli_path , chat_path = chat_path , pty_path = pty_path , target = target ))
251
+ tauri_config_path .write_text (
252
+ macos_tauri_config (cli_path = cli_path , chat_path = chat_path , pty_path = pty_path , target = target )
253
+ )
252
254
253
255
info ("Building" , DESKTOP_PACKAGE_NAME )
254
256
@@ -394,13 +396,14 @@ def sign_and_rebundle_macos(app_path: pathlib.Path, dmg_path: pathlib.Path, sign
394
396
info ("Done signing!!" )
395
397
396
398
397
- def build_linux_minimal (cli_path : pathlib .Path , pty_path : pathlib .Path ):
399
+ def build_linux_minimal (cli_path : pathlib .Path , pty_path : pathlib .Path , chat_path : pathlib . Path ):
398
400
"""
399
401
Creates tar.gz, tar.xz, tar.zst, and zip archives under `BUILD_DIR`.
400
402
401
403
Each archive has the following structure:
402
404
- archive/bin/q
403
405
- archive/bin/qterm
406
+ - archive/bin/qchat
404
407
- archive/install.sh
405
408
- archive/README
406
409
- archive/BUILD-INFO
@@ -431,6 +434,7 @@ def build_linux_minimal(cli_path: pathlib.Path, pty_path: pathlib.Path):
431
434
432
435
shutil .copy2 (cli_path , archive_bin_path / CLI_BINARY_NAME )
433
436
shutil .copy2 (pty_path , archive_bin_path / PTY_BINARY_NAME )
437
+ shutil .copy2 (chat_path , archive_bin_path / CHAT_BINARY_NAME )
434
438
435
439
signer = load_gpg_signer ()
436
440
@@ -708,7 +712,7 @@ def copy_extension(extension_uuid, extension_dir_name):
708
712
cwd = DESKTOP_PACKAGE_PATH ,
709
713
env = {** os .environ , ** rust_env (release = release , variant = Variant .FULL ), "BUILD_DIR" : BUILD_DIR },
710
714
)
711
- desktop_path = pathlib .Path (f' target/{ target } /{ " release" if release else " debug" } /{ DESKTOP_BINARY_NAME } ' )
715
+ desktop_path = pathlib .Path (f" target/{ target } /{ ' release' if release else ' debug' } /{ DESKTOP_BINARY_NAME } " )
712
716
713
717
deb_resources = LinuxDebResources (
714
718
cli_path = cli_path ,
@@ -732,7 +736,7 @@ def copy_extension(extension_uuid, extension_dir_name):
732
736
# Determine architecture suffix based on the target triple
733
737
arch_suffix = "aarch64" if "aarch64" in target else "amd64"
734
738
info (f"Using architecture suffix: { arch_suffix } for target: { target } " )
735
-
739
+
736
740
bundle_name = f"{ tauri_product_name ()} _{ version ()} _{ arch_suffix } "
737
741
target_subdir = "release" if release else "debug"
738
742
bundle_grandparent_path = f"target/{ target } /{ target_subdir } /bundle"
@@ -917,7 +921,7 @@ def build(
917
921
)
918
922
build_output [variant ] = BinaryPaths (cli_path = cli_path , pty_path = pty_path )
919
923
else :
920
- build_linux_minimal (cli_path = cli_path , pty_path = pty_path )
924
+ build_linux_minimal (cli_path = cli_path , pty_path = pty_path , chat_path = chat_path )
921
925
build_output [variant ] = BinaryPaths (cli_path = cli_path , pty_path = pty_path )
922
926
923
927
return build_output
0 commit comments