Skip to content

Commit 565c34f

Browse files
authored
Fix beta conficts (#10)
* Started using AppImage binary to simplify manifest file and fix discord rich presence * Only arch supported is x86_64
1 parent 2d1274b commit 565c34f

File tree

4 files changed

+18
-13436
lines changed

4 files changed

+18
-13436
lines changed

flathub.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"only-arches": ["x86_64"]
3+
}

io.github.victoralvesf.aonsoku.yaml

Lines changed: 15 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ runtime-version: '25.08'
44
sdk: org.freedesktop.Sdk
55
base: org.electronjs.Electron2.BaseApp
66
base-version: '25.08'
7-
sdk-extensions:
8-
- org.freedesktop.Sdk.Extension.node24
97
command: aonsoku.sh
108
separate-locales: false
119
finish-args:
@@ -20,52 +18,34 @@ finish-args:
2018
- --talk-name=org.kde.StatusNotifierWatcher
2119
- --filesystem=xdg-run/tray-icon:create
2220
- --talk-name=com.canonical.AppIndicator
21+
# media player controls
2322
- --own-name=org.mpris.MediaPlayer2.chromium.*
24-
build-options:
25-
append-path: /usr/lib/sdk/node24/bin
26-
env:
27-
NPM_CONFIG_LOGLEVEL: info
23+
# discord rich presence
24+
- --filesystem=xdg-run/app/com.discordapp.Discord:create
2825
modules:
2926
- name: aonsoku
27+
only-arches: ["x86_64"]
28+
skip-arches: ["aarch64"]
3029
buildsystem: simple
31-
build-options:
32-
append-path: /usr/lib/sdk/node24/bin
33-
env:
34-
npm_config_nodedir: /usr/lib/sdk/node24
35-
XDG_CACHE_HOME: /run/build/aonsoku/flatpak-node/cache
36-
npm_config_cache: /run/build/aonsoku/flatpak-node/npm-cache
37-
npm_config_offline: 'true'
3830
build-commands:
39-
- rm -f pnpm-lock.yaml
40-
- rm -rf node_modules
41-
- rm -f package-lock.json
42-
- yarn cache clean --offline
43-
- ELECTRON_SKIP_BINARY_DOWNLOAD=1 CYPRESS_INSTALL_BINARY=0 yarn --offline
44-
- yarn run electron:build
45-
- |
46-
. ./flatpak-node/electron-builder-arch-args.sh
47-
yarn run build:unpack $ELECTRON_BUILDER_ARCH_ARGS
48-
- cp -a dist/linux*unpacked /app/main
31+
- chmod +x Aonsoku-*.AppImage
32+
- ./Aonsoku-*.AppImage --appimage-extract
33+
- mv squashfs-root /app/bin/aonsoku
4934
- install -Dm755 -t /app/bin/ aonsoku.sh
5035
- install -Dm644 flatpak/${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}.desktop
5136
- install -Dm644 flatpak/${FLATPAK_ID}.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml
5237
- install -Dm644 resources/icons/icon.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png
5338
sources:
39+
- type: file
40+
url: https://github.com/victoralvesf/aonsoku/releases/download/v0.11.0/Aonsoku-v0.11.0-linux-x86_64.AppImage
41+
sha256: e0b8ab559e40eacfa0a9a6a267618141a7ad3bf81375c00c6a503f5967d409ab
5442
- type: git
5543
url: https://github.com/victoralvesf/aonsoku.git
5644
commit: 3ee88828183228fd7f75d7730db94ea14f340ef1
57-
- type: inline
58-
dest-filename: .yarnrc
59-
contents: |
60-
yarn-offline-mirror "/run/build/aonsoku/flatpak-node/yarn-mirror"
61-
cache-folder "/run/downloads"
62-
prefix "/run/downloads"
63-
--install.offline true
64-
--run.offline true
65-
- yarn-sources.json
66-
- type: file
67-
path: yarn.lock
6845
- type: script
6946
dest-filename: aonsoku.sh
7047
commands:
71-
- zypak-wrapper /app/main/aonsoku "$@"
48+
- for i in {0..9}; do
49+
- test -S $XDG_RUNTIME_DIR/discord-ipc-$i || ln -sf {app/com.discordapp.Discord,$XDG_RUNTIME_DIR}/discord-ipc-$i;
50+
- done
51+
- zypak-wrapper /app/bin/aonsoku/aonsoku "$@"

0 commit comments

Comments
 (0)