This repository has been archived by the owner on Mar 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
org.altaqwaa.Altaqwaa.yml
54 lines (54 loc) · 1.77 KB
/
org.altaqwaa.Altaqwaa.yml
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
app-id: org.altaqwaa.Altaqwaa
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '22.08'
sdk-extensions:
- org.freedesktop.Sdk.Extension.node18
command: run.sh
separate-locales: false
finish-args:
- --socket=wayland
- --socket=x11
- --share=ipc
- --device=dri
- --socket=pulseaudio
- --filesystem=home
- --share=network
- --talk-name=org.freedesktop.Notifications
build-options:
append-path: /usr/lib/sdk/node18/bin
env:
NPM_CONFIG_LOGLEVEL: info
modules:
- name: altaqwaa
buildsystem: simple
build-options:
env:
XDG_CACHE_HOME: /run/build/altaqwaa/flatpak-node/cache
npm_config_cache: /run/build/altaqwaa/flatpak-node/npm-cache
npm_config_offline: 'true'
build-commands:
- jq '.build.linux.target="dir"' <<<$(<package.json) > package.json
# Install npm dependencies
- npm install --offline --logs-dir="/app/share/"
# Build the app; in this example the `dist` script
# in package.json runs electron-builder
- |
. ../flatpak-node/electron-builder-arch-args.sh
npm run dist -- $ELECTRON_BUILDER_ARCH_ARGS --linux --dir
# Bundle app and dependencies
- cp -a dist/linux*unpacked /app/main
# Install app wrapper
- install -Dm755 -t /app/bin/ ../run.sh
sources:
- type: archive
url: https://github.com/rn0x/Altaqwaa-Islamic-Desktop-Application/archive/refs/tags/v3.0.1.tar.gz
sha256: 4827132f9570e3fb93d7d196d103800cfbfc23b01e502791b7c632b1d87fa8ec
- generated-sources.json
# # Wrapper to launch the app
# - type: script
# dest-filename: run.sh
# commands:
# - zypak-wrapper.sh /app/main/electron-sample-app "$@"