Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion synapse-api
14 changes: 11 additions & 3 deletions synapse/cli/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def build_deb_package(app_dir: str, app_name: str, version: str = "0.1.0") -> bo
image_tag,
"/bin/bash",
"-c",
"find /usr/lib -name 'libsynapse*.so*' -exec cp -av {} /out/ \\;",
"find /usr/lib -name 'libsynapse*.so*' -exec cp -a {} /out/ \\;",
]

subprocess.run(docker_cmd, check=True)
Expand Down Expand Up @@ -398,7 +398,9 @@ def build_deb_package(app_dir: str, app_name: str, version: str = "0.1.0") -> bo
fpm_cmd.append(".")

fpm_image = "cdrx/fpm-ubuntu:latest"
console.print(f"[yellow]Running FPM (Docker image: {fpm_image}) ...[/yellow]")
console.print(
f"[yellow]Packaging App for Synapse Device (Docker image: {fpm_image}) ...[/yellow]"
)

# Replace host-specific staging dir with container mount path
fpm_args = fpm_cmd[1:]
Expand All @@ -424,7 +426,13 @@ def build_deb_package(app_dir: str, app_name: str, version: str = "0.1.0") -> bo
"fpm",
] + fpm_args

subprocess.run(docker_fpm_cmd, check=True)
subprocess.run(
docker_fpm_cmd,
check=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
text=True,
)

# Verify that a .deb was produced
deb_files = [
Expand Down
Loading