Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v10.0.0 rc1 #81

Open
wants to merge 7 commits into
base: v10.0.0
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
chore(script): update install.py for v10
  • Loading branch information
minhanghuang committed Dec 17, 2024
commit 4520c67926247349ba88ee5e0e80e521d5637926
12 changes: 12 additions & 0 deletions install.py
Original file line number Diff line number Diff line change
@@ -41,6 +41,7 @@ def start(self):
self._clone_tinyxml2()
self._clone_gfamily()
self._clone_dds()
self._unpack_bvar() # apollo v10

def _clone_github_repo(self, repo_url, repo_name, *args):
dowload_path = os.path.join(self._dowload_path, repo_name)
@@ -204,6 +205,17 @@ def _clone_dds(self):
self._cmd("rm -rf fast-rtps-1.5.0-1/")
os.chdir(self._current_path)

def _unpack_bvar(self):
bvar_name = "bvar_9.0.0-rc-r2_amd64.deb"
if "x86_64" == self._machine:
pass
else:
bvar_name = "bvar_9.0.0-rc-r3_arm64.deb"
bvar_path = os.path.join(os.path.join(self._current_path, "libs"), bvar_name)
self._cmd("dpkg -x {} {}".format(bvar_path, self._dowload_path))
self._cmd("cp -r {}* {}".format(os.path.join(self._dowload_path, "usr/local/"), self._install_prefix))
return None

def parse_config():
parser = argparse.ArgumentParser(description="install")
parser.add_argument("--platform", type=str, default=platform.machine(), help="platform")