Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix discord rich presence (#8)
* Started using AppImage binary to simplify manifest file and fix discord rich presence

* Only arch supported is x86_64
  • Loading branch information
thehaniak authored Feb 13, 2026
commit b1622bf4f69e82bd62ee99d1d7c2288a066a2f5d
3 changes: 3 additions & 0 deletions flathub.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"only-arches": ["x86_64"]
}
50 changes: 15 additions & 35 deletions io.github.victoralvesf.aonsoku.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ runtime-version: '25.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '25.08'
sdk-extensions:
- org.freedesktop.Sdk.Extension.node24
command: aonsoku.sh
separate-locales: false
finish-args:
Expand All @@ -20,52 +18,34 @@ finish-args:
- --talk-name=org.kde.StatusNotifierWatcher
- --filesystem=xdg-run/tray-icon:create
- --talk-name=com.canonical.AppIndicator
# media player controls
- --own-name=org.mpris.MediaPlayer2.chromium.*
build-options:
append-path: /usr/lib/sdk/node24/bin
env:
NPM_CONFIG_LOGLEVEL: info
# discord rich presence
- --filesystem=xdg-run/app/com.discordapp.Discord:create
modules:
- name: aonsoku
only-arches: ["x86_64"]
skip-arches: ["aarch64"]
buildsystem: simple
build-options:
append-path: /usr/lib/sdk/node24/bin
env:
npm_config_nodedir: /usr/lib/sdk/node24
XDG_CACHE_HOME: /run/build/aonsoku/flatpak-node/cache
npm_config_cache: /run/build/aonsoku/flatpak-node/npm-cache
npm_config_offline: 'true'
build-commands:
- rm -f pnpm-lock.yaml
- rm -rf node_modules
- rm -f package-lock.json
- yarn cache clean --offline
- ELECTRON_SKIP_BINARY_DOWNLOAD=1 CYPRESS_INSTALL_BINARY=0 yarn --offline
- yarn run electron:build
- |
. ./flatpak-node/electron-builder-arch-args.sh
yarn run build:unpack $ELECTRON_BUILDER_ARCH_ARGS
- cp -a dist/linux*unpacked /app/main
- chmod +x Aonsoku-*.AppImage
- ./Aonsoku-*.AppImage --appimage-extract
- mv squashfs-root /app/bin/aonsoku
- install -Dm755 -t /app/bin/ aonsoku.sh
- install -Dm644 flatpak/${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}.desktop
- install -Dm644 flatpak/${FLATPAK_ID}.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml
- install -Dm644 resources/icons/icon.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png
sources:
- type: file
url: https://github.com/victoralvesf/aonsoku/releases/download/v0.11.0/Aonsoku-v0.11.0-linux-x86_64.AppImage
sha256: e0b8ab559e40eacfa0a9a6a267618141a7ad3bf81375c00c6a503f5967d409ab
- type: git
url: https://github.com/victoralvesf/aonsoku.git
commit: 3ee88828183228fd7f75d7730db94ea14f340ef1
- type: inline
dest-filename: .yarnrc
contents: |
yarn-offline-mirror "/run/build/aonsoku/flatpak-node/yarn-mirror"
cache-folder "/run/downloads"
prefix "/run/downloads"
--install.offline true
--run.offline true
- yarn-sources.json
- type: file
path: yarn.lock
- type: script
dest-filename: aonsoku.sh
commands:
- zypak-wrapper /app/main/aonsoku "$@"
- for i in {0..9}; do
- test -S $XDG_RUNTIME_DIR/discord-ipc-$i || ln -sf {app/com.discordapp.Discord,$XDG_RUNTIME_DIR}/discord-ipc-$i;
- done
- zypak-wrapper /app/bin/aonsoku/aonsoku "$@"
Loading