1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-24 07:30:19 +01:00
upscayl/flatpak/org.upscayl.app.json
2023-02-19 19:31:25 -05:00

68 lines
2.3 KiB
JSON

{
"app-id": "org.upscayl.app",
"runtime": "org.freedesktop.Platform",
"runtime-version": "22.08",
"sdk": "org.freedesktop.Sdk",
"base": "org.electronjs.Electron2.BaseApp",
"base-version": "22.08",
"command": "upscayl-wrapper",
"separate-locales": false,
"finish-args": [
"--share=ipc",
"--socket=x11",
"--device=dri",
"--filesystem=home"
],
"modules": [
{
"name": "zypak",
"sources": [
{
"type": "git",
"url": "https://github.com/refi64/zypak",
"tag": "v2022.04"
}
]
},
{
"name": "upscayl",
"buildsystem": "simple",
"cleanup": ["upscayl.zip"],
"sources": [
{
"type": "file",
"only-arches": ["x86_64"],
"url": "https://github.com/upscayl/upscayl/releases/download/v2.0.1/upscayl-2.0.1-linux.zip",
"sha256": "96883ae1bb9a3a5c0972ab7e402c5132e40c4fe0ffaeec8753524df16b03de51",
"dest-filename": "upscayl.zip"
},
{
"type": "file",
"path": "org.upscayl.app.metainfo.xml"
},
{
"type": "file",
"path": "../main/build/icon.png"
},
{
"type": "script",
"dest-filename": "upscayl-wrapper",
"commands": ["zypak-wrapper /app/upscayl/upscayl"]
}
],
"build-commands": [
"install -d /app/upscayl",
"unzip upscayl -d /app/upscayl",
"install upscayl-wrapper /app/bin/",
"install -d /app/share/icons/hicolor/512x512/apps/",
"install icon.png /app/share/icons/hicolor/512x512/apps/org.upscayl.app.png",
"install -d /app/share/applications",
"touch org.upscayl.app.desktop",
"install -Dp -m644 org.upscayl.app.metainfo.xml /app/share/metainfo/org.upscayl.app.metainfo.xml",
"install -m644 org.upscayl.app.desktop /app/share/applications/org.upscayl.app.desktop",
"desktop-file-edit --set-key=Exec --set-value='upscayl-wrapper %U' --set-key=Icon --set-value='org.upscayl.app' --set-key=Comment --set-value='Upscale Images' --set-key=Name --set-value='Upscayl' --set-key=StartupNotify --set-value='false' --set-key=Categories --set-value='ImageProcessing;RasterGraphics;Graphics;' --set-key=Type --set-value='Application' /app/share/applications/org.upscayl.app.desktop"
]
}
]
}