Merge pull request 'new: apifox' (#1) from apifox into main

Reviewed-on: #1
main
indusy 2023-12-19 16:16:55 +08:00
commit fee630e4cb
3 changed files with 49 additions and 0 deletions

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

View File

@ -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