Skip to content

Commit

Permalink
Revert "Removed flatpak building ability since flatpak is not the pro…
Browse files Browse the repository at this point in the history
…per distribution platform for this"

This reverts commit 919cd63.
  • Loading branch information
Adam-Cosner committed Dec 6, 2024
1 parent e4f9780 commit c54cbb0
Show file tree
Hide file tree
Showing 6 changed files with 287 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
/.idea
/.flatpak-builder
/cargo-sources.json
/repo
flatpak-builder-tools/
/repo
171 changes: 169 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ serde = { version = "1.0.215", features = ["derive"] }
log = "0.4.22"
env_logger = "0.11.5"
shlex = "1.3.0"
flatpak-unsandbox = "0.1.0"

[dependencies.libcosmic]
git = "https://github.com/pop-os/libcosmic.git"
Expand Down
44 changes: 44 additions & 0 deletions io.github.cosmic_utils.Observatory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"id": "io.github.cosmic_utils.observatory",
"runtime": "org.freedesktop.Platform",
"runtime-version": "24.08",
"sdk": "org.freedesktop.Sdk",
"sdk-extensions": ["org.freedesktop.Sdk.Extension.rust-stable"],
"command": "observatory",
"finish-args": [
"--share=ipc",
"--socket=fallback-x11",
"--socket=wayland",
"--device=dri",
"--filesystem=host",
"--filesystem=xdg-config/cosmic:ro",
"--talk-name=org.freedesktop.Flatpak"
],
"build-options": {
"append-path": "/usr/lib/sdk/rust-stable/bin",
"env": {
"CARGO_HOME": "/run/build/observatory/cargo"
}
},
"modules": [
{
"name": "observatory",
"buildsystem": "simple",
"build-commands": [
"cargo --offline build --release --verbose",
"install -Dm0755 ./target/release/observatory -t /app/bin/",
"install -Dm0644 ./res/icons/hicolor/scalable/apps/icon.svg /app/share/icons/hicolor/scalable/apps/io.github.cosmic_utils.observatory.svg",
"install -Dm0644 ./res/metainfo.xml /app/share/metainfo/io.github.cosmic_utils.observatory.metainfo.xml",
"install -Dm0644 ./res/app.desktop /app/share/applications/io.github.cosmic_utils.observatory.desktop"
],
"sources": [
{
"type": "git",
"url": "https://github.com/cosmic-utils/observatory.git",
"commit": "b8b33e79ea0f5eacac38e339444f5792d649d200"
},
"cargo-sources.json"
]
}
]
}
Loading

0 comments on commit c54cbb0

Please sign in to comment.