mirror of
https://github.com/andersrh/flatpak.git
synced 2026-05-31 03:18:03 +00:00
Initial commit
This commit is contained in:
commit
d343c58c1e
8 changed files with 283 additions and 0 deletions
3
com.binance.desktop/.gitignore
vendored
Normal file
3
com.binance.desktop/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
.flatpak-builder
|
||||
build-dir
|
||||
repo
|
||||
19
com.binance.desktop/binance-desktop.sh
Normal file
19
com.binance.desktop/binance-desktop.sh
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
EXTRA_ARGS=()
|
||||
|
||||
declare -i USE_WAYLAND="${USE_WAYLAND:-0}"
|
||||
|
||||
if [[ "${USE_WAYLAND}" -eq 1 && "${XDG_SESSION_TYPE}" == "wayland" ]]; then
|
||||
EXTRA_ARGS+=(
|
||||
"--enable-features=WaylandWindowDecorations"
|
||||
"--ozone-platform=wayland"
|
||||
)
|
||||
fi
|
||||
|
||||
|
||||
echo "Debug: Will run Binance Desktop with the following arguments: ${EXTRA_ARGS[@]}"
|
||||
echo "Debug: Additionally, user gave: $@"
|
||||
|
||||
export TMPDIR="${XDG_RUNTIME_DIR}/app/${FLATPAK_ID}"
|
||||
exec zypak-wrapper /app/Binance/binance "${EXTRA_ARGS[@]}" "$@"
|
||||
3
com.binance.desktop/build.sh
Executable file
3
com.binance.desktop/build.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
sudo flatpak-builder --install --force-clean build-dir com.binance.desktop.yaml
|
||||
59
com.binance.desktop/com.binance.desktop.metainfo.xml
Normal file
59
com.binance.desktop/com.binance.desktop.metainfo.xml
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop">
|
||||
<id>com.binance.desktop</id>
|
||||
<name>Binance Desktop</name>
|
||||
<developer_name>Binance</developer_name>
|
||||
<summary>Crypto currency exchange</summary>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<url type="homepage">https://binance.com/</url>
|
||||
<url type="bugtracker">https://github.com/flathub/com.binance.desktop/issues</url>
|
||||
<description>
|
||||
<p>
|
||||
Binance is the largest crypto currency exchange and this is the Binance Desktop app as a flatpak.
|
||||
</p>
|
||||
<p>
|
||||
Note: This flatpak is maintained by the Flathub community, and is not necessarily endorsed or officially maintained by Binance.
|
||||
</p>
|
||||
</description>
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<image type="source">https://bin.bnbstatic.com/static/images/electron/electron-enhance.png</image>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
<releases>
|
||||
<release version="1.45.2" date="2023-07-01"/>
|
||||
</releases>
|
||||
<content_rating type="oars-1.1">
|
||||
<content_attribute id="violence-cartoon">none</content_attribute>
|
||||
<content_attribute id="violence-fantasy">none</content_attribute>
|
||||
<content_attribute id="violence-realistic">none</content_attribute>
|
||||
<content_attribute id="violence-bloodshed">none</content_attribute>
|
||||
<content_attribute id="violence-sexual">none</content_attribute>
|
||||
<content_attribute id="violence-desecration">none</content_attribute>
|
||||
<content_attribute id="violence-slavery">none</content_attribute>
|
||||
<content_attribute id="violence-worship">none</content_attribute>
|
||||
<content_attribute id="drugs-alcohol">none</content_attribute>
|
||||
<content_attribute id="drugs-narcotics">none</content_attribute>
|
||||
<content_attribute id="drugs-tobacco">none</content_attribute>
|
||||
<content_attribute id="sex-nudity">none</content_attribute>
|
||||
<content_attribute id="sex-themes">none</content_attribute>
|
||||
<content_attribute id="sex-homosexuality">none</content_attribute>
|
||||
<content_attribute id="sex-prostitution">none</content_attribute>
|
||||
<content_attribute id="sex-adultery">none</content_attribute>
|
||||
<content_attribute id="sex-appearance">none</content_attribute>
|
||||
<content_attribute id="language-profanity">none</content_attribute>
|
||||
<content_attribute id="language-humor">none</content_attribute>
|
||||
<content_attribute id="language-discrimination">none</content_attribute>
|
||||
<content_attribute id="social-chat">intense</content_attribute>
|
||||
<content_attribute id="social-info">none</content_attribute>
|
||||
<content_attribute id="social-audio">intense</content_attribute>
|
||||
<content_attribute id="social-location">none</content_attribute>
|
||||
<content_attribute id="social-contacts">intense</content_attribute>
|
||||
<content_attribute id="money-purchasing">none</content_attribute>
|
||||
<content_attribute id="money-gambling">none</content_attribute>
|
||||
</content_rating>
|
||||
<provides>
|
||||
<id>com.binance.desktop</id>
|
||||
</provides>
|
||||
<update_contact>andersr+flatpakmaintainer@rytter.me</update_contact>
|
||||
</component>
|
||||
72
com.binance.desktop/com.binance.desktop.yaml
Normal file
72
com.binance.desktop/com.binance.desktop.yaml
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
app-id: com.binance.desktop
|
||||
base: org.electronjs.Electron2.BaseApp
|
||||
base-version: '22.08'
|
||||
runtime: org.freedesktop.Platform
|
||||
runtime-version: '22.08'
|
||||
sdk: org.freedesktop.Sdk
|
||||
command: binance-desktop
|
||||
separate-locales: false
|
||||
rename-desktop-file: binance.desktop
|
||||
rename-icon: binance
|
||||
finish-args:
|
||||
# X11 performance
|
||||
- --share=ipc
|
||||
# We need X11
|
||||
- --socket=x11
|
||||
# Access to wayland
|
||||
- --socket=wayland
|
||||
# Audio Access
|
||||
- --socket=pulseaudio
|
||||
# Network Access
|
||||
- --share=network
|
||||
# GPU acceleration
|
||||
- --device=dri
|
||||
# We need to send notifications
|
||||
- --talk-name=org.freedesktop.Notifications
|
||||
- --talk-name=org.gnome.Mutter.IdleMonitor
|
||||
- --talk-name=org.kde.StatusNotifierWatcher
|
||||
- --talk-name=com.canonical.AppMenu.Registrar
|
||||
- --talk-name=com.canonical.indicator.application
|
||||
- --talk-name=org.ayatana.indicator.application
|
||||
# Allow advanced input methods
|
||||
- --talk-name=org.freedesktop.portal.Fcitx
|
||||
# Use Wayland if available
|
||||
- --env=USE_WAYLAND=1
|
||||
# Fix cursor size on HiDPI screens on Wayland
|
||||
- --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
|
||||
|
||||
modules:
|
||||
- name: binance-desktop
|
||||
buildsystem: simple
|
||||
build-commands:
|
||||
- install -Dm0755 binance-desktop.sh "${FLATPAK_DEST}/bin/binance-desktop"
|
||||
- install -Dm0644 "${FLATPAK_ID}.metainfo.xml" "${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml"
|
||||
- |
|
||||
bsdtar -Oxf binance-desktop.deb 'data.tar.xz' |
|
||||
bsdtar -xf - \
|
||||
--exclude='./usr/share/doc'
|
||||
- mv opt/* "${FLATPAK_DEST}"
|
||||
- install -Dm0644 "usr/share/applications/binance.desktop" "${FLATPAK_DEST}/share/applications/binance.desktop"
|
||||
- desktop-file-edit --set-key=Exec --set-value='binance-desktop %U' "${FLATPAK_DEST}/share/applications/binance.desktop"
|
||||
- |
|
||||
for size in 16 24 32 48 64 128 256 512; do
|
||||
install -Dm0644 "usr/share/icons/hicolor/${size}x${size}/apps/binance.png" "${FLATPAK_DEST}/share/icons/hicolor/${size}x${size}/apps/binance.png"
|
||||
done
|
||||
- desktop-file-edit --set-key=Icon --set-value="binance" "${FLATPAK_DEST}/share/applications/binance.desktop"
|
||||
sources:
|
||||
- type: file
|
||||
dest-filename: binance-desktop.deb
|
||||
url: https://download.binance.com/electron-desktop/linux/production/binance-amd64-linux.deb
|
||||
sha256: ec42f03b482d36dd7d6b5dd9576aa461163f60fd72a281e011cb0bd33b82fe9b
|
||||
x-checker-data:
|
||||
type: debian-repo
|
||||
package-name: binance
|
||||
root: https://download.binance.com/desktop/apt
|
||||
dist: xenial
|
||||
component: main
|
||||
only-arches:
|
||||
- x86_64
|
||||
- type: file
|
||||
path: binance-desktop.sh
|
||||
- type: file
|
||||
path: com.binance.desktop.metainfo.xml
|
||||
4
com.binance.desktop/flathub.json
Normal file
4
com.binance.desktop/flathub.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"only-arches": ["x86_64"],
|
||||
"automerge-flathubbot-prs": true
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue