-
Notifications
You must be signed in to change notification settings - Fork 0
lockbook flatpak builder package #1
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| { | ||
| "app-id": "org.lockbook.Lockbook", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we need to use |
||
| "runtime": "org.freedesktop.Platform", | ||
| "runtime-version": "23.08", | ||
| "sdk": "org.freedesktop.Sdk", | ||
| "sdk-extensions": [ | ||
| "org.freedesktop.Sdk.Extension.rust-stable" | ||
| ], | ||
| "command": "lockbook-linux", | ||
| "finish-args": [ | ||
| "--share=ipc", | ||
| "--filesystem=home:ro", | ||
| "--filesystem=xdg-config/wezterm", | ||
| "--socket=fallback-x11", | ||
| "--socket=wayland", | ||
| "--device=dri", | ||
| "--talk-name=org.freedesktop.Flatpak", | ||
| "--talk-name=org.freedesktop.Notifications", | ||
| "--share=network" | ||
|
Comment on lines
+11
to
+19
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this needs more scrutiny, most of these are not valid for lockbook
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i copied them from wezterm and before i read on the flatpak docs here |
||
| ], | ||
| "modules": [ | ||
| { | ||
| "name": "lockbook", | ||
| "buildsystem": "simple", | ||
| "build-options": { | ||
| "append-path": "/usr/lib/sdk/rust-stable/bin", | ||
| "env": { | ||
| "CARGO_HOME": "/run/build/lockbook/cargo" | ||
| } | ||
| }, | ||
| "build-commands": [ | ||
| "cargo --offline fetch --manifest-path Cargo.toml --verbose", | ||
| "cargo --offline build --release --verbose", | ||
| "mkdir -p /app/share/icons/hicolor/128x128/apps/", | ||
| "cp ./clients/linux/lockbook.png /app/share/icons/hicolor/128/apps/org.lockbook.Lockbook.png", | ||
| "mkdir -p /app/share/metainfo/", | ||
| "cp ./utils/dev/flatpak/lockbook.appdata.xml /app/share/metainfo/org.lockbook.Lockbook.appdata.xml", | ||
| "mkdir -p /app/share/applications/", | ||
| "cp ./utils/dev/snap-packages/lockbook-desktop/snap/gui/lockbook-desktop.desktop /app/shareapplications/org.lockbook.Lockbook.desktop" | ||
| ], | ||
| "sources": [ | ||
| { | ||
| "type": "dir", | ||
| "path": "../.." | ||
| }, | ||
| "generated-sources.json" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
|
|
||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have a feeling that this is a file that wezterm uses to generate the |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| { | ||
| "app-id": "org.lockbook.Lockbook", | ||
| "runtime": "org.freedesktop.Platform", | ||
| "runtime-version": "23.08", | ||
| "sdk": "org.freedesktop.Sdk", | ||
| "sdk-extensions": [ | ||
| "org.freedesktop.Sdk.Extension.rust-stable" | ||
| ], | ||
| "command": "lockbook-linux", | ||
| "finish-args": [ | ||
| "--share=ipc", | ||
| "--filesystem=home:ro", | ||
| "--filesystem=xdg-config/wezterm", | ||
| "--socket=fallback-x11", | ||
| "--socket=wayland", | ||
| "--device=dri", | ||
| "--talk-name=org.freedesktop.Flatpak", | ||
| "--talk-name=org.freedesktop.Notifications", | ||
| "--share=network" | ||
| ], | ||
| "modules": [ | ||
| { | ||
| "name": "lockbook", | ||
| "buildsystem": "simple", | ||
| "build-options": { | ||
| "append-path": "/usr/lib/sdk/rust-stable/bin", | ||
| "env": { | ||
| "CARGO_HOME": "/run/build/lockbook/cargo" | ||
| } | ||
| }, | ||
| "build-commands": [ | ||
| "cargo --offline fetch --manifest-path Cargo.toml --verbose", | ||
| "cargo --offline build --release --verbose", | ||
| "install -Dm644 ./clients/linux/lockbook.png /app/share/icons/hicolor/128/apps/org.lockbook.Lockbook.png", | ||
| "install -Dm644 ./utils/dev/flatpak/lockbook.appdata.xml /app/share/metainfo/org.lockbook.Lockbook.appdata.xml", | ||
| "install -Dm644 ./utils/dev/snap-packages/lockbook-desktop/snap/gui/lockbook-desktop.desktop /app/shareapplications/org.lockbook.Lockbook.desktop", | ||
| ], | ||
| "sources": [ | ||
| { | ||
| "type": "archive", | ||
| "archive-type": "tar-gzip", | ||
| "url": "@URL@", | ||
| "sha256": "@SHA256@" | ||
| }, | ||
| { | ||
| "type": "file", | ||
| "path": "org.lockbook.Lockbook.appdata.xml" | ||
| }, | ||
| "generated-sources.json" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
|
|
||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| [package] | ||
| name = "rust-flatpak" | ||
| version = "0.1.0" | ||
| authors = ["Amumug <fabriali4@gmail.com>"] | ||
| edition = "2018" | ||
|
|
||
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
|
||
| [dependencies] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| <!-- TODO --> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| [Desktop Entry] | ||
| Encoding=UTF-8 | ||
| Type=Application | ||
| Comment=The private, polished note-taking platform. | ||
| Terminal=false | ||
| Exec=/home/amumu/.cargo/bin/lockbook-linux | ||
| Name=Lockbook | ||
| Icon=/home/amumu/Documents/lockbook/utils/dev/snap-packages/lockbook-desktop/snap/gui/logo.svg |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| fn main() { | ||
| println!("Hello, world!"); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| { | ||
| "app-id": "net.lockbook.Lockbook", | ||
| "runtime": "org.freedesktop.Platform", | ||
| "runtime-version": "25.08", | ||
| "sdk": "org.freedesktop.Sdk", | ||
| "sdk-extensions": [ | ||
| "org.freedesktop.Sdk.Extension.rust-stable" | ||
| ], | ||
| "build-options": { | ||
| "append-path": "usr/lib/sdk/rust-stable/bin" | ||
| }, | ||
| "command": "lockbook", | ||
| "finish-args": [ | ||
| "--socket=x11", | ||
| "--device=dri", | ||
| "--share=network" | ||
| ], | ||
| "modules": [ | ||
| { | ||
| "name": "lockbook", | ||
| "buildsystem": "cmake", | ||
| "build-commands": [ | ||
| "cargo --offline fetch --manifest-path Cargo.toml --verbose", | ||
| "cargo --offline build --release --verbose", | ||
| "cargo install --locked --path .", | ||
| "mkdir -p /app/share/icons/hicolor/128x128/apps/", | ||
| "cp /logo.svg /app/share/icons/hicolor/128x128/apps/net.lockbook.Lockbook.svg", | ||
| "mkdir -p /app/share/metainfo/", | ||
| "cp /lockbook-appdata.xml /app/share/metainfo/net.lockbook.Lockbook.appdata.xml", | ||
| "mkdir -p /app/share/applications", | ||
| "cp /lockbook-desktop.desktop /app/share/applications/net.lockbook.Lockbook.desktop" | ||
| ], | ||
| "sources": [ | ||
| { | ||
| "type": "git", | ||
| "url": "https://github.com/lockbook/lockbook/releases/download/25.12.15/lockbook-linux", | ||
| "tag": "0.9.3", | ||
| "commit": "010423e09dd64c250f8d63a2906aca80e2a0de5f" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm also not sure what goes here, you'll have to read a bit more
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't know what we need to put on this file so that's why i put that line there wezterm example