-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcom.dinoxtech.Timer.yml
More file actions
61 lines (53 loc) · 2.06 KB
/
com.dinoxtech.Timer.yml
File metadata and controls
61 lines (53 loc) · 2.06 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
app-id: com.dinoxtech.Timer
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.node18
base: org.electronjs.Electron2.BaseApp
base-version: '23.08'
command: dinoxtech-timer
separate-locales: false
finish-args:
- --share=ipc
- --socket=x11
- --socket=wayland
- --socket=pulseaudio
- --device=dri
- --share=network
modules:
- name: dinoxtech-timer
buildsystem: simple
build-options:
append-path: /usr/lib/sdk/node18/bin
env:
NPM_CONFIG_LOGLEVEL: info
build-commands:
# Copy all electron app files
- install -D electron/main.js /app/lib/dinoxtech-timer/main.js
- install -D electron/renderer.js /app/lib/dinoxtech-timer/renderer.js
- install -D electron/index.html /app/lib/dinoxtech-timer/index.html
- install -D electron/styles.css /app/lib/dinoxtech-timer/styles.css
- install -D electron/package.json /app/lib/dinoxtech-timer/package.json
- install -D electron/package-lock.json /app/lib/dinoxtech-timer/package-lock.json
# Copy assets
- mkdir -p /app/lib/dinoxtech-timer/assets
- install -D electron/assets/icon.svg /app/lib/dinoxtech-timer/assets/icon.svg
# Create launcher script using Electron from BaseApp
- |
cat > /app/bin/dinoxtech-timer <<EOF
#!/bin/bash
exec /app/bin/electron /app/lib/dinoxtech-timer "\$@"
EOF
- chmod +x /app/bin/dinoxtech-timer
# Install desktop file
- install -Dm644 com.dinoxtech.Timer.desktop /app/share/applications/com.dinoxtech.Timer.desktop
# Install metainfo
- install -Dm644 com.dinoxtech.Timer.metainfo.xml /app/share/metainfo/com.dinoxtech.Timer.metainfo.xml
# Install icons
- install -Dm644 electron/assets/icon.svg /app/share/icons/hicolor/scalable/apps/com.dinoxtech.Timer.svg
sources:
- type: git
url: https://github.com/dinoxtech/timer.git
tag: v1.0.0
commit: 39f8db2 # замінити на твій commit hash