mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 00:24:15 +02:00
basic installation options
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
from typing import List
|
||||
|
||||
from bauh.commons.system import SimpleProcess
|
||||
from bauh.gems.web import NATIVEFIER_BIN_PATH
|
||||
|
||||
|
||||
def install(url: str, name: str, output_dir: str, electron_version: str, cwd: str) -> SimpleProcess:
|
||||
return SimpleProcess([NATIVEFIER_BIN_PATH, url, '--name', name, '-e', electron_version, output_dir], cwd=cwd)
|
||||
def install(url: str, name: str, output_dir: str, electron_version: str, cwd: str, extra_options: List[str] = None) -> SimpleProcess:
|
||||
cmd = [NATIVEFIER_BIN_PATH, url, '--name', name, '-e', electron_version, output_dir]
|
||||
|
||||
if extra_options:
|
||||
cmd.extend(extra_options)
|
||||
|
||||
return SimpleProcess(cmd, cwd=cwd)
|
||||
|
||||
Reference in New Issue
Block a user