diff --git a/com.apifox/com.apifox.Apifox.desktop b/com.apifox/com.apifox.Apifox.desktop new file mode 100644 index 0000000..39bb2ef --- /dev/null +++ b/com.apifox/com.apifox.Apifox.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Categories=Development; +Exec=run.sh %U +Icon=com.apifox.Apifox +StartupWMClass=apifox +Name=Apifox +Keywords=api;apifox;postman;curl;request; +StartupNotify=true +Terminal=false +Type=Application +SingleMainWindow=true diff --git a/com.apifox/com.apifox.Apifox.png b/com.apifox/com.apifox.Apifox.png new file mode 100644 index 0000000..b46a79f Binary files /dev/null and b/com.apifox/com.apifox.Apifox.png differ diff --git a/com.apifox/com.apifox.Apifox.yaml b/com.apifox/com.apifox.Apifox.yaml new file mode 100644 index 0000000..5f85434 --- /dev/null +++ b/com.apifox/com.apifox.Apifox.yaml @@ -0,0 +1,38 @@ +app-id: com.apifox.Apifox +runtime: org.freedesktop.Platform +runtime-version: "23.08" +sdk: org.freedesktop.Sdk +base: org.electronjs.Electron2.BaseApp +base-version: "23.08" +command: run.sh +tags: + - proprietary +finish-args: + - --share=ipc + - --socket=x11 + - --socket=pulseaudio + - --share=network + - --device=dri + - --filesystem=home + - --talk-name=com.canonical.AppMenu.Registrar +modules: + - name: Apifox + buildsystem: simple + build-commands: + - cp -a * ${FLATPAK_DEST}/bin + post-install: + - install -D com.apifox.Apifox.desktop -t /app/share/applications/ + - install -D com.apifox.Apifox.png -t /app/share/icons/hicolor/scalable/apps/ + sources: + - type: archive + url: https://cdn.apifox.com/download/Apifox-linux-manual-latest.tar.gz + sha256: b314a2d81f1aaab10a57ffa7e4518adcb6eea2e3f6f9499372af38439a3c749c + - type: script + dest-filename: run.sh + commands: + - export TMPDIR="$XDG_CACHE_HOME" + - zypak-wrapper.sh /app/bin/apifox "$@" + - type: file + path: com.apifox.Apifox.png + - type: file + path: com.apifox.Apifox.desktop