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

Add snap packaging #8589

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
16 changes: 16 additions & 0 deletions .github/workflows/snap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
snap:
uses: canonical/robotics-actions-workflows/.github/workflows/snap.yaml@main
snap-test-script: |
rerun help
# secrets:
# snapstore-login: ${{ secrets.SNAPSTORE_LOGIN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ wheels
/meilisearch

.pixi/*

*.snap

Binary file added snap/gui/rerun-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions snap/gui/rerun.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=Rerun
Exec=rerun
Icon=${SNAP}/meta/gui/rerun-icon.png
Comment=Visualize streams of multimodal data
Terminal=false
Categories=Development;
Name[en_US]=Rerun
55 changes: 55 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: rerun
adopt-info: rerun
summary: Visualize streams of multimodal data
description: |
Rerun is building the multimodal data stack to model,
ingest, store, query and view robotics-style data.
It's used in areas like robotics, spatial and embodied AI, generative media,
industrial processing, simulation, security, and health.

Rerun is easy to use!
Use the Rerun SDK (available for C++, Python and Rust) to log data like images,
tensors, point clouds, and text.
Logs are streamed to the Rerun Viewer for live visualization or to file for later use.

issues: https://github.com/rerun-io/rerun/issues
contact: https://github.com/rerun-io/rerun/issues
source-code: https://github.com/rerun-io/rerun
website: https://rerun.io/
license: Apache-2.0
icon: snap/gui/rerun-icon.png

confinement: strict
base: core24

apps:
rerun:
command: rerun
extensions: [gnome]
plugs:
- desktop
- home
- network
- network-bind
- removable-media

parts:
rerun:
plugin: rust
source: .
build-packages: [nasm]
rust-cargo-parameters: ["--package", "rerun-cli"]
rust-no-default-features: True
rust-features: [grpc, map_view, nasm, native_viewer]
override-build: |
# Build rerun-cli package
cargo build --package rerun-cli --release --no-default-features --features grpc,map_view,nasm,native_viewer

# Copy the executables to the install dir
find "${CRAFT_PART_BUILD}/target/release" -maxdepth 1 -executable -exec install -Dvm755 {} "${CRAFT_PART_INSTALL}" ';'

git config --global --add safe.directory '*'
version="$(git describe --always --tags --exclude='weekly' | sed -e 's/^v//;s/-/+git/;y/-/./')"
[ -n "$(echo $version | grep "+git")" ] && grade=devel || grade=stable
craftctl set version="$version"
craftctl set grade="$grade"
Loading