-
Notifications
You must be signed in to change notification settings - Fork 5
/
com.flashforge.FlashPrint.json
111 lines (111 loc) · 4.35 KB
/
com.flashforge.FlashPrint.json
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"app-id": "com.flashforge.FlashPrint",
"runtime": "org.kde.Platform",
"runtime-version": "5.15-23.08",
"sdk": "org.kde.Sdk",
"command": "FlashPrint",
"tags": [
"proprietary"
],
"finish-args": [
"--filesystem=home",
"--filesystem=xdg-run/gvfs",
"--socket=x11",
"--device=all",
"--share=network",
"--share=ipc"
],
"cleanup": [
"/include",
"/lib/pkgconfig",
"/share/pkgconfig"
],
"modules": [
"shared-modules/glu/glu-9.json",
{
"name": "libudev1",
"buildsystem": "autotools",
"sources": [
{
"type": "archive",
"url": "https://github.com/gentoo/eudev/archive/v3.2.7.tar.gz",
"sha512": "17c1894c6e85ddcef259e3e10c21ff7f36567dec377c279cc423c14957d3de97c88aa6eb4cab7cab5ffbdbf80cc63b52af8da592bf226affd21dd9edb74203ed",
"sha256": "ce2fda4dea129bbcf824c947aab23504bcd26911481b47dbaf10646f723083a4"
}
]
},
{
"name": "FlashPrint",
"buildsystem": "simple",
"build-commands": [
"install -D flashprint.sh /app/bin/FlashPrint",
"install -D /usr/bin/ar /app/bin/ar",
"install -t /app/lib /usr/lib/x86_64-linux-gnu/libsframe.so.1",
"install -D /usr/bin/desktop-file-install /app/bin/desktop-file-install",
"mkdir -p /app/lib",
"ARCH_TRIPLE=$(gcc --print-multiarch) && cp /usr/lib/${ARCH_TRIPLE}/libbfd-*.so /app/lib",
"install -Dm644 ${FLATPAK_ID}.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml",
"install -D ${FLATPAK_ID}.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
"install -D ${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}.desktop",
"mkdir -p /app/share/mime/packages/",
"install -m644 -p -t /app/share/mime/packages ${FLATPAK_ID}.mime.xml",
"update-mime-database /app/share/mime",
"install -D apply_extra /app/bin/apply_extra"
],
"sources": [
{
"type": "extra-data",
"filename": "flashprint.deb",
"only-arches": [
"x86_64"
],
"url": "http://www.ishare3d.com/3dapp/public/FlashPrint-5/FlashPrint/flashprint5_5.8.7_amd64.deb",
"sha256": "0d56395f1033dc73c058c35a19ab94a29ece587785bae447b95965c89bc7a859",
"size": 26972620,
"x-checker-data": {
"type": "html",
"url": "http://www.ishare3d.com/3dapp/public/FlashPrint-5/appInfo1",
"version-pattern": "linux64Ver=([\\d\\.-]+)",
"url-template": "FlashPrint/flashprint${major}_${version}_amd64.deb",
"only-arches": [
"x86_64"
]
}
},
{
"type": "file",
"path": "com.flashforge.FlashPrint.metainfo.xml"
},
{
"type": "file",
"path": "com.flashforge.FlashPrint.svg"
},
{
"type": "file",
"path": "com.flashforge.FlashPrint.desktop"
},
{
"type": "file",
"path": "com.flashforge.FlashPrint.mime.xml"
},
{
"type": "script",
"dest-filename": "flashprint.sh",
"commands": [
"LD_LIBRARY_PATH=/app/extra/lib/ exec /app/extra/share/FlashPrint5/FlashPrint \"$@\""
]
},
{
"type": "script",
"dest-filename": "apply_extra",
"commands": [
"ar p flashprint.deb data.tar.xz | tar xJ",
"rm -f flashprint.deb",
"mv usr/* .",
"rmdir usr"
]
}
]
}
]
}