53 lines
2.5 KiB
JSON
53 lines
2.5 KiB
JSON
{
|
|
"app-id": "io.github.vietc.VietPlus",
|
|
"runtime": "org.gnome.Platform",
|
|
"runtime-version": "50",
|
|
"sdk": "org.gnome.Sdk",
|
|
"sdk-extensions": [
|
|
"org.freedesktop.Sdk.Extension.rust-stable"
|
|
],
|
|
"command": "vietc-daemon",
|
|
"finish-args": [
|
|
"--socket=x11",
|
|
"--socket=wayland",
|
|
"--filesystem=home",
|
|
"--share=ipc",
|
|
"--talk-name=org.freedesktop.Notifications",
|
|
"--talk-name=org.a11y.Bus"
|
|
],
|
|
"modules": [
|
|
{
|
|
"name": "vietc",
|
|
"buildsystem": "simple",
|
|
"build-options": {
|
|
"append-path": "/usr/lib/sdk/rust-stable/bin",
|
|
"env": {
|
|
"CARGO_HOME": "/run/build/vietc/cargo"
|
|
}
|
|
},
|
|
"build-commands": [
|
|
"cargo build --release -p vietc-daemon -p vietc-cli -p vietc-uinputd --manifest-path /run/build/vietc/Cargo.toml",
|
|
|
|
"install -Dm755 target/release/vietc /app/bin/vietc-daemon",
|
|
"install -Dm755 target/release/vietc-cli /app/bin/vietc-cli",
|
|
"install -Dm755 target/release/vietc-uinputd /app/bin/vietc-uinputd",
|
|
|
|
"install -Dm644 packaging/icons/vietc.svg /app/share/icons/hicolor/scalable/apps/io.github.vietc.VietPlus.svg",
|
|
"install -Dm644 packaging/icons/vietc-vn.svg /app/share/icons/hicolor/scalable/apps/io.github.vietc.VietPlus.vietc-vn.svg",
|
|
"install -Dm644 packaging/icons/vietc-en.svg /app/share/icons/hicolor/scalable/apps/io.github.vietc.VietPlus.vietc-en.svg",
|
|
|
|
"mkdir -p /app/share/applications",
|
|
"cat > /app/share/applications/io.github.vietc.VietPlus.desktop << END\n[Desktop Entry]\nName=Viet+\nComment=Vietnamese Input Method\nExec=/app/bin/vietc-daemon\nIcon=io.github.vietc.VietPlus\nTerminal=false\nType=Application\nCategories=Utility;\nEND",
|
|
|
|
"mkdir -p /app/share/metainfo",
|
|
"cat > /app/share/metainfo/io.github.vietc.VietPlus.metainfo.xml << 'XML'\n<?xml version='1.0' encoding='utf-8'?>\n<component type='desktop-application'>\n <id>io.github.vietc.VietPlus</id>\n <name>Viet+</name>\n <summary>Vietnamese Input Method for Linux</summary>\n <description>\n <p>Zero-configuration Vietnamese input method engine supporting Telex and VNI input methods.</p>\n </description>\n <metadata_license>MIT</metadata_license>\n <project_license>MIT</project_license>\n <url type='homepage'>https://github.com/vndangkhoa/vietc</url>\n <provides><binary>vietc-daemon</binary></provides>\n <categories><category>Utility</category></categories>\n</component>\nXML"
|
|
],
|
|
"sources": [
|
|
{
|
|
"type": "dir",
|
|
"path": "../.."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|