Skip to content

fix: run commands on devices in background #432

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

Merged
merged 1 commit into from
Jun 11, 2025
Merged

Conversation

guptadev21
Copy link
Member

@guptadev21 guptadev21 commented May 7, 2025

🚀 Building the CLI AppImage Locally

Follow these steps to build the CLI AppImage on your local machine:

1. Prepare the Environment

  • Switch to the appropriate branch.
  • Install dependencies by running:
uv sync

2. Download AppImages

3. Run the Build

You have two options to continue:

Option A: - Open the script located at:

./scripts/build-rio-appimage.sh
  • Comment out lines 1–13. These lines are intended for the AppImage CI pipeline and fetch the AppImage from MinIO.

Option B: Run the Required Commands Manually

chmod +x scripts/*.AppImage
uv build
cp dist/rapyuta_io_cli-*.whl scripts/

# If you are using Ubuntu or Debian
sudo apt-get update
sudo apt-get install fuse libfuse2

cd scripts
./python3.11.1-cp311-cp311-manylinux_2_24_x86_64.AppImage --appimage-extract
./squashfs-root/AppRun -m pip install --upgrade pip
./squashfs-root/AppRun -m pip install rapyuta_io_cli-*.whl

# Making AppRun
sed -i -e 's|/opt/python3.11/bin/python3.11|/usr/bin/rio|g' squashfs-root/AppRun

# Making rio.desktop
mv squashfs-root/usr/share/applications/python3.11.1.desktop squashfs-root/usr/share/applications/rio.desktop
sed -i -e 's|^Name=.*|Name=rio|g' squashfs-root/usr/share/applications/rio.desktop
sed -i -e 's|^Exec=.*|Exec=rio|g' squashfs-root/usr/share/applications/rio.desktop
sed -i -e 's|^Comment=.*|Comment=A rapyuta.io CLI|g' squashfs-root/usr/share/applications/rio.desktop
rm squashfs-root/python3.11.1.desktop
cp squashfs-root/usr/share/applications/rio.desktop squashfs-root/

./appimagetool-x86_64 -n squashfs-root/

Now, your appimage build is done inside scripts folder.

Screencast.From.2025-05-07.16-56-59.mp4

resolves https://github.com/rapyuta-robotics/rapyuta_io/issues/821

@guptadev21 guptadev21 requested review from a team as code owners May 7, 2025 07:56
Copy link

github-actions bot commented May 7, 2025

🤖 Pull Request Artifacts (#15587926777) 🎉

@guptadev21 guptadev21 force-pushed the fix/piping-tunnel branch from 7261dc9 to 534a5fd Compare May 8, 2025 06:01
@guptadev21 guptadev21 self-assigned this May 8, 2025
@guptadev21 guptadev21 force-pushed the fix/piping-tunnel branch from 1822853 to 25915c6 Compare May 19, 2025 02:24
Copy link
Member

@ankitrgadiya ankitrgadiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to wait until we can merge SDK.

@guptadev21 guptadev21 requested a review from Copilot June 9, 2025 08:40
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses the fix to run commands on devices in the background by introducing a new hidden click option "--bg" and updates how the Command is instantiated accordingly. Additionally, the dependency for rapyuta-io has been updated to point to a specific commit from the Git repository.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
riocli/device/execute.py Added a new hidden click option "--bg" and updated the Command parameters to use bg accordingly.
pyproject.toml Updated the rapyuta-io dependency to use a specific Git commit from the official repository.

@ankitrgadiya ankitrgadiya merged commit 2e350b8 into devel Jun 11, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants