mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
init Flatpak manifest
This commit is contained in:
parent
6731aa62fa
commit
762e9816e7
4 changed files with 80 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,2 +1,5 @@
|
||||||
|
*flatpak*
|
||||||
|
build
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
|
repo
|
||||||
target
|
target
|
||||||
17
README.md
17
README.md
|
|
@ -198,9 +198,22 @@ cargo install Yoda
|
||||||
``` bash
|
``` bash
|
||||||
git clone https://github.com/YGGverse/Yoda.git
|
git clone https://github.com/YGGverse/Yoda.git
|
||||||
cd Yoda
|
cd Yoda
|
||||||
cargo build
|
cargo build --release
|
||||||
```
|
```
|
||||||
* `cargo run`
|
* run `target/release/Yoda`
|
||||||
|
|
||||||
|
#### Flatpak
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
git clone https://github.com/YGGverse/Yoda.git
|
||||||
|
cd Yoda
|
||||||
|
flatpak-builder --force-clean build\
|
||||||
|
--install-deps-from=flathub\
|
||||||
|
--install --repo=repo --user\
|
||||||
|
io.github.yggverse.Yoda.yaml
|
||||||
|
```
|
||||||
|
* launch: `flatpak run io.github.yggverse.Yoda`
|
||||||
|
* bundle: `flatpak build-bundle repo Yoda.flatpak io.github.yggverse.Yoda`
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
|
|
|
||||||
13
data/io.github.yggverse.Yoda.desktop
Normal file
13
data/io.github.yggverse.Yoda.desktop
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Categories=GNOME;GTK;Network
|
||||||
|
Comment=Browser for Gemini protocol
|
||||||
|
Exec=Yoda
|
||||||
|
GenericName=Browser
|
||||||
|
#Icon=io.github.yggverse.Yoda
|
||||||
|
Keywords=Gnome;GTK;Gemini;Browser
|
||||||
|
Name=Yoda
|
||||||
|
StartupNotify=true
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
X-GNOME-UsesNotifications=true
|
||||||
|
X-Purism-FormFactor=Workstation
|
||||||
49
io.github.yggverse.Yoda.yaml
Normal file
49
io.github.yggverse.Yoda.yaml
Normal file
|
|
@ -0,0 +1,49 @@
|
||||||
|
id: "io.github.yggverse.Yoda"
|
||||||
|
runtime: "org.gnome.Platform"
|
||||||
|
runtime-version: "48"
|
||||||
|
sdk: "org.gnome.Sdk"
|
||||||
|
|
||||||
|
sdk-extensions:
|
||||||
|
- "org.freedesktop.Sdk.Extension.rust-stable"
|
||||||
|
|
||||||
|
command: "Yoda"
|
||||||
|
|
||||||
|
finish-args:
|
||||||
|
- "--device=dri"
|
||||||
|
- "--share=ipc"
|
||||||
|
- "--share=network"
|
||||||
|
- "--socket=fallback-x11"
|
||||||
|
# - "--socket=pulseaudio"
|
||||||
|
- "--socket=wayland"
|
||||||
|
|
||||||
|
build-options:
|
||||||
|
append-path: "/usr/lib/sdk/rust-stable/bin"
|
||||||
|
build-args:
|
||||||
|
- "--share=network"
|
||||||
|
env:
|
||||||
|
CARGO_HOME: "/run/build/Yoda/cargo"
|
||||||
|
|
||||||
|
modules:
|
||||||
|
- name: "libspelling"
|
||||||
|
buildsystem: "meson"
|
||||||
|
config-opts:
|
||||||
|
- "--prefix=/app"
|
||||||
|
cleanup:
|
||||||
|
- "/include"
|
||||||
|
- "/lib/pkgconfig"
|
||||||
|
sources:
|
||||||
|
- type: "archive"
|
||||||
|
url: "https://gitlab.gnome.org/GNOME/libspelling/-/archive/0.4.9/libspelling-0.4.9.tar.gz"
|
||||||
|
sha256: "7fa6185d9fc621b890ef01b2bb7943951dc2ad94d31cbf6e16bc468589571e17"
|
||||||
|
|
||||||
|
- name: "Yoda"
|
||||||
|
buildsystem: "simple"
|
||||||
|
build-commands:
|
||||||
|
- "cargo build --release"
|
||||||
|
post-install:
|
||||||
|
- "install -Dm755 ./target/release/Yoda -t /app/bin"
|
||||||
|
- "install -Dm644 ./data/${FLATPAK_ID}.desktop -t /app/share/applications"
|
||||||
|
# - "install -Dm644 ./data/${FLATPAK_ID}.svg -t /app/share/icons/hicolor/symbolic/apps"
|
||||||
|
sources:
|
||||||
|
- type: "dir"
|
||||||
|
path: "."
|
||||||
Loading…
Add table
Add a link
Reference in a new issue