-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathio.github.victoralvesf.aonsoku.yaml
More file actions
71 lines (71 loc) · 2.48 KB
/
io.github.victoralvesf.aonsoku.yaml
File metadata and controls
71 lines (71 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
app-id: io.github.victoralvesf.aonsoku
runtime: org.freedesktop.Platform
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:
- --share=ipc
- --device=dri
- --socket=wayland
- --socket=fallback-x11
- --socket=pulseaudio
- --share=network
- --env=ELECTRON_TRASH=gio
- --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
- --talk-name=org.kde.StatusNotifierWatcher
- --filesystem=xdg-run/tray-icon:create
- --talk-name=com.canonical.AppIndicator
- --own-name=org.mpris.MediaPlayer2.chromium.*
build-options:
append-path: /usr/lib/sdk/node24/bin
env:
NPM_CONFIG_LOGLEVEL: info
modules:
- name: aonsoku
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
- 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: git
url: https://github.com/victoralvesf/aonsoku.git
commit: 431a7fdd0cb4a747dfac9dc5e0c95de89fb6f074
- 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 "$@"