1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 21:32:13 +03:00
wezterm/assets/flatpak/org.wezfurlong.wezterm.json

61 lines
2.5 KiB
JSON

{
"app-id": "org.wezfurlong.wezterm",
"runtime": "org.freedesktop.Platform",
"runtime-version": "21.08",
"sdk": "org.freedesktop.Sdk",
"sdk-extensions" : [
"org.freedesktop.Sdk.Extension.rust-stable"
],
"command": "wezterm",
"finish-args": [
"--share=ipc",
"--filesystem=home:ro",
"--socket=fallback-x11",
"--socket=wayland",
"--device=dri",
"--talk-name=org.freedesktop.Flatpak",
"--talk-name=org.freedesktop.Notifications",
"--talk-name=org.freedesktop.portal.Desktop",
"--talk-name=org.freedesktop.portal.Settings",
"--share=network"
],
"build-options": {
"append-path" : "/usr/lib/sdk/rust-stable/bin"
},
"modules": [
{
"name": "wezterm",
"buildsystem": "simple",
"build-options": {
"env": {
"CARGO_HOME": "/run/build/wezterm/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 ./assets/icon/terminal.png /app/share/icons/hicolor/128x128/apps/org.wezfurlong.wezterm.png",
"mkdir -p /app/share/metainfo/",
"cp ./assets/wezterm.appdata.xml /app/share/metainfo/org.wezfurlong.wezterm.appdata.xml",
"mkdir -p /app/share/applications/",
"cp ./assets/wezterm.desktop /app/share/applications/org.wezfurlong.wezterm.desktop",
"install -Dm755 ./target/release/wezterm -t /app/bin/",
"install -Dm755 ./target/release/wezterm-gui -t /app/bin/",
"install -Dm755 ./target/release/wezterm-mux-server -t /app/bin/",
"install -Dm755 ./target/release/strip-ansi-escapes -t /app/bin/",
"install -Dm644 assets/shell-integration/* -t /app/extra/export/share/etc/profile.d",
"install -Dm644 assets/shell-completion/zsh /app/extra/export/share/zsh/site-functions/_wezterm",
"install -Dm644 assets/shell-completion/bash /app/extra/export/share/etc/bash_completion.d/wezterm"
],
"sources": [
{
"type": "dir",
"path": "../.."
},
"generated-sources.json"
]
}
]
}