This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom.arteeh.Flasher.yml
67 lines (65 loc) · 2.11 KB
/
com.arteeh.Flasher.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
55
56
57
58
59
60
61
62
63
64
65
66
67
app-id: com.arteeh.Flasher
# Libhandy depends on Vala, so the freedesktop platform is not enough
runtime: org.gnome.Platform
runtime-version: '40'
sdk: org.gnome.Sdk
command: pinetime-flasher
finish-args:
# Display: X11
- --share=ipc
- --socket=fallback-x11
# Display: Wayland
- --socket=wayland
# Download binaries from the internet
- --share=network
# Access to ST-Link usb device
- --device=all
modules:
# OpenOCD with ST-Link requires libusb to be installed
- name: libusb
sources:
- type: git
url: https://github.com/libusb/libusb.git
tag: v1.0.24
commit: c6a35c56016ea2ab2f19115d2ea1e85e0edae155
# Flashing software this app uses
- name: openocd
config-opts:
- --enable-stlink
sources:
- type: git
url: https://git.code.sf.net/p/openocd/code
tag: v0.11.0
commit: f342aac0845a69d591ad39a025d74e9c765f6420
# GTK widgets for mobile
- name: libhandy
buildsystem: meson
builddir: true
config-opts:
- "-Dexamples=false"
- "-Dtests=false"
sources:
- type: git
url: https://gitlab.gnome.org/GNOME/libhandy.git
tag: 1.0.3
commit: 7126d2e8da9dcdeb5751e60ff6a74930804f9637
# My app
- name: flasher
buildsystem: simple
subdir: build
build-commands:
- make
- install -D pinetime-flasher /app/bin/pinetime-flasher
- install -D ../src/flash-init.ocd /app/bin/flash-init.ocd
- install -D ../src/flash-program.ocd /app/bin/flash-program.ocd
- install -D ../src/swd-stlink.ocd /app/bin/swd-stlink.ocd
- install -D icon.svg /app/share/icons/hicolor/scalable/apps/com.arteeh.Flasher.svg
- install -D icon.png /app/share/icons/hicolor/128x128/apps/com.arteeh.Flasher.png
- install -D com.arteeh.Flasher.desktop /app/share/applications/com.arteeh.Flasher.desktop
- install -D com.arteeh.Flasher.metainfo.xml /app/share/metainfo/com.arteeh.Flasher.metainfo.xml
sources:
- type: git
url: https://github.com/arteeh/pinetime-flasher.git
tag: 1.2
#- type: dir
# path: /home/arteeh/git/pinetime-flasher