Skip to content

Commit

Permalink
added lib target
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbraun89 authored Apr 12, 2023
1 parent 5311ad9 commit a9c198e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nanolayer/installers/gh_release/gh_release_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,13 +568,16 @@ def install(
cls,
repo: str,
target_name: str,
lib_target_name: Optional[str] = None,
bin_location: Optional[Union[str, Path]] = None,
lib_location: Optional[Union[str, Path]] = None,
asset_regex: Optional[str] = None,
version: str = "latest",
force: bool = False,
arch: Optional[str] = None,
) -> None:
if lib_target_name is None:
lib_target_name = target_name
if "linux" not in platform.system().lower():
raise cls.BadPlatform(
f"Currently only the Linux platform is supported (got {platform.system().lower()})"
Expand Down Expand Up @@ -667,7 +670,7 @@ def install(
else:
# In case other files in same dir, assume lib dir.
# extracting to lib location and soft link the target into bin location
target_lib_location = lib_location.joinpath(target_name)
target_lib_location = lib_location.joinpath(lib_target_name)

logger.warning(
"extracting %s into %s",
Expand Down

0 comments on commit a9c198e

Please sign in to comment.