-
Notifications
You must be signed in to change notification settings - Fork 13
/
com.nxp.mcuxpressoide.yaml
80 lines (80 loc) · 2.72 KB
/
com.nxp.mcuxpressoide.yaml
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
72
73
74
75
76
77
78
79
80
app-id: com.nxp.mcuxpressoide
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Compat.i386
add-extensions:
org.freedesktop.Platform.Compat.i386:
directory: lib/i386-linux-gnu
version: '21.08'
org.freedesktop.Platform.Compat.i386.Debug:
directory: lib/debug/lib/i386-linux-gnu
version: '21.08'
no-autodownload: true
command: mcuxpressoide
cleanup:
- /lib/pkgconfig
finish-args:
- --allow=multiarch
- --device=all
- --device=dri
- --env=PATH=/app/bin:/usr/bin:/app/extra/jlink
- --filesystem=home
- --persist=.eclipse
- --persist=.nxp
- --persist=mcuxpresso
- --share=ipc
- --share=network
# TODO: internal browser seems to be broken, the usual outdated eclipse nonsense
- --socket=wayland
# TODO: ide crashes with x11, need to debug this
- --socket=x11
# seem to be already the default
# - --env=SWT_GTK3=0
modules:
- name: mcuxpressoide
buildsystem: simple
build-commands:
- install -Dm755 apply_extra mcuxpressoide -t /app/bin/
- install -Dm644 ${FLATPAK_ID}.png -t /app/share/icons/hicolor/256x256/apps/
- install -Dm644 ${FLATPAK_ID}.desktop -t /app/share/applications/
- install -dm755 /app/lib{,/debug/lib}/i386-linux-gnu
- |
install -Dm644 /dev/stdin /app/etc/ld.so.conf <<EOF
/app/extra/lib
/app/lib
/app/lib/i386-linux-gnu
EOF
sources:
- type: extra-data
# needed to be hosted privately as nxp requires now authenticated download
url: http://files.net.private/mcuxpressoide-11.4.1_6260.x86_64.deb.bin
sha256: c0da741b9241dace7dc7778052e43c020a819c0d763b6cea4feead0fc744725d
size: 973727062
filename: mcuxpressoide.x86_64.deb.bin
- type: file
path: apply_extra
- type: script
dest-filename: mcuxpressoide
commands:
- exec /app/extra/ide/mcuxpressoide "$@"
- type: file
path: com.nxp.mcuxpressoide.desktop
- type: file
path: com.nxp.mcuxpressoide.png
modules:
- ../shared-modules/ncurses5-compat/libncurses5-compat.json
- name: dfu-util
sources:
- type: archive
url: http://dfu-util.sourceforge.net/releases/dfu-util-0.11.tar.gz
sha256: b4b53ba21a82ef7e3d4c47df2952adf5fa494f499b6b0b57c58c5d04ae8ff19e
x-checker-data:
type: anitya
project-id: 10195
stable-only: true
url-template: http://dfu-util.sourceforge.net/releases/dfu-util-$version.tar.gz
modules:
- ../flathub-shared-modules/libusb/libusb.json
# - name: jlink-software-and-documentation // instead of the version distributed with the ide