diff --git a/.gitignore b/.gitignore index 6165d4a..69cf607 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,12 @@ yarn-error.log* # vercel .vercel + +#flatpak +.flatpak/ +.flatpak-builder +repo/ +build-dir/ + +#vscode +.vscode/ \ No newline at end of file diff --git a/flatpak/com.github.upscayl.upscayl.json b/flatpak/com.github.upscayl.upscayl.json new file mode 100644 index 0000000..c7e5a10 --- /dev/null +++ b/flatpak/com.github.upscayl.upscayl.json @@ -0,0 +1,72 @@ +{ + "app-id": "com.github.upscayl.upscayl", + "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-1.5.5.zip" + ], + "sources": [ + { + "type": "file", + "only-arches": [ + "x86_64" + ], + "url": "https://github.com/JanDeDinoMan/upscayl/releases/download/v1.5.5/upscayl-1.5.5.zip", + "sha256": "0e57b3cbb96299fac6beea185ffdf2f105d3258ac6081bd1f3c408912541dacc" + }, + { + "type": "file", + "path": "com.github.upscayl.upscayl.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-1.5.5 -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/com.github.upscayl.upscayl.png", + "install -d /app/share/applications", + "touch com.github.upscayl.upscayl.desktop", + "install -Dp -m644 com.github.upscayl.upscayl.metainfo.xml /app/share/metainfo/com.github.upscayl.upscayl.metainfo.xml", + "install -m644 com.github.upscayl.upscayl.desktop /app/share/applications/com.github.upscayl.upscayl.desktop", + "desktop-file-edit --set-key=Exec --set-value='upscayl-wrapper %U' --set-key=Icon --set-value='com.github.upscayl.upscayl' --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/com.github.upscayl.upscayl.desktop" + ] + } + ] +} \ No newline at end of file diff --git a/flatpak/com.github.upscayl.upscayl.metainfo.xml b/flatpak/com.github.upscayl.upscayl.metainfo.xml new file mode 100644 index 0000000..9532f85 --- /dev/null +++ b/flatpak/com.github.upscayl.upscayl.metainfo.xml @@ -0,0 +1,25 @@ + + + com.github.upscayl.upscayl + Upscayl + Free and Open Source AI Image Upscaler + Nayam Amarshe + com.github.upscayl.upscayl.desktop + FSFAP + AGPL-3.0 + +

Free and Open Source AI Image Upscaler

+
+ https://github.com/upscayl/upscayl/ + https://github.com/upscayl/upscayl/issues + + Graphics + RasterGraphics + ImageProcessing + + + + upscale + + Upscayl +
\ No newline at end of file