Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add io.httpie.HTTPie (HTTPie Desktop App) #3978

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 28 additions & 0 deletions io.httpie.HTTPie.appdata.xml
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>io.httpie.HTTPie</id>
<launchable type="desktop-id">io.httpie.HTTPie.desktop</launchable>
<name>HTTPie</name>
<developer_name>HTTPie</developer_name>
<summary>Cross-platform API testing client for Humans</summary>
<project_license>LicenseRef-proprietary</project_license>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unable to find any mentions of the actual licence for this app.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Author plans to Open Source it in Future. But, right now,it's proprietary.

httpie/desktop#32

<metadata_license>CC0-1.0</metadata_license>
<url type="homepage">https://httpie.io/desktop/</url>
<url type="bugtracker">https://github.com/httpie/desktop/issues</url>
<description>
<p>
HTTPie is cross-platform API testing client for humans. Painlessly test REST, GraphQL, and HTTP APIs.
</p>
</description>
<screenshots>
<screenshot>
<image type="source">
https://raw.githubusercontent.com/httpie/desktop/master/.github/httpie-desktop.png
</image>
</screenshot>
</screenshots>
<content_rating type="oars-1.1" />
<releases>
<release version="2023.1.2" date="2023-01-27"/>
</releases>
</component>
85 changes: 85 additions & 0 deletions io.httpie.HTTPie.yml
@@ -0,0 +1,85 @@
app-id: io.httpie.HTTPie
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '22.08'
separate-locales: false
tags:
- proprietary
command: httpie-desktop
rename-icon: httpie
rename-desktop-file: httpie.desktop
finish-args:
- --socket=x11
- --share=network
varbhat marked this conversation as resolved.
Show resolved Hide resolved
- --share=ipc
modules:
- name: unappimage
buildsystem: simple
build-commands:
- make -C squashfs-tools -j ${FLATPAK_BUILDER_N_JOBS} install INSTALL_DIR=/app/bin
sources:
- type: git
url: https://github.com/refi64/unappimage
commit: d7f86f2a0d7ec3a69211125207d5f127386b849a
- name: httpie
buildsystem: simple
build-commands:
- unappimage httpie.AppImage
- rm httpie.AppImage

- install -Dm755 httpie.sh /app/bin/httpie-desktop
- install -dm755 /app/share/applications
- desktop-file-edit --set-key=Exec --set-value="httpie-desktop %U" squashfs-root/httpie.desktop
- install -Dm644 squashfs-root/httpie.desktop -t /app/share/applications
- install -Dm644 squashfs-root/usr/share/icons/hicolor/512x512/apps/httpie.png
-t /app/share/icons/hicolor/512x512/apps
- install -Dm644 squashfs-root/usr/share/icons/hicolor/256x256/apps/httpie.png
-t /app/share/icons/hicolor/256x256/apps
- install -Dm644 squashfs-root/usr/share/icons/hicolor/128x128/apps/httpie.png
-t /app/share/icons/hicolor/128x128/apps
- install -Dm644 squashfs-root/usr/share/icons/hicolor/64x64/apps/httpie.png
-t /app/share/icons/hicolor/64x64/apps
- install -Dm644 squashfs-root/usr/share/icons/hicolor/32x32/apps/httpie.png
-t /app/share/icons/hicolor/32x32/apps
- install -Dm644 squashfs-root/usr/share/icons/hicolor/16x16/apps/httpie.png
-t /app/share/icons/hicolor/16x16/apps

- install -Dm644 io.httpie.HTTPie.appdata.xml -t /app/share/metainfo/
- mv squashfs-root /app/main/
sources:
- type: file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to use extra-data as it's proprietary.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@barthalion ,
I have asked upstream whether they permit Flathub to redistribute their Application

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dest-filename: httpie.AppImage
only-arches:
- x86_64
url: https://github.com/httpie/desktop/releases/download/v2023.1.2/HTTPie-2023.1.2.AppImage
sha256: 5eb2ec0e5d4865966ed32ffc3891b90f40215134cb01b6590ef07c467c23d6b5
x-checker-data:
type: json
url: https://api.github.com/repos/httpie/desktop/releases
version-query: map(select(.prerelease == false)) | map(select(.tag_name | startswith("v"))) | first | .tag_name | sub("v"; "")
timestamp-query: map(select(.prerelease == false)) | map(select(.tag_name | startswith("v"))) | first | .published_at
url-query: '"https://github.com/httpie/desktop/releases/download/v"+ $version + "/HTTPie-" + $version + ".AppImage"'
- type: file
dest-filename: httpie.AppImage
only-arches:
- aarch64
url: https://github.com/httpie/desktop/releases/download/v2023.1.2/HTTPie-2023.1.2-arm64.AppImage
sha256: 5376827848dcedec97295493bfeeaedb6c18e73b1cf6625bb2a2ea8208fb2a6c
x-checker-data:
type: json
url: https://api.github.com/repos/httpie/desktop/releases
version-query: map(select(.prerelease == false)) | map(select(.tag_name | startswith("v"))) | first | .tag_name | sub("v"; "")
timestamp-query: map(select(.prerelease == false)) | map(select(.tag_name | startswith("v"))) | first | .published_at
url-query: '"https://github.com/httpie/desktop/releases/download/v"+ $version + "/HTTPie-" + $version + "-arm64.AppImage"'
- type: script
dest-filename: httpie.sh
commands:
# Share a TMPDIR, so that multiple instance can figure out there's
# already one running.
- export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID"
# This script is required to work around a lack of SUID sandbox helper:
- exec zypak-wrapper /app/main/httpie "$@"
- type: file
path: io.httpie.HTTPie.appdata.xml