-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom.github.gijsgoudzwaard.image-optimizer.json
56 lines (56 loc) · 2.06 KB
/
com.github.gijsgoudzwaard.image-optimizer.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
{
"app-id": "com.github.gijsgoudzwaard.image-optimizer",
"base": "io.elementary.BaseApp",
"base-version": "juno-23.08",
"runtime": "org.freedesktop.Platform",
"sdk": "org.freedesktop.Sdk",
"runtime-version": "23.08",
"command": "com.github.gijsgoudzwaard.image-optimizer",
"finish-args": [
/* X11 + XShm */
"--share=ipc", "--socket=x11",
/* Wayland */
"--socket=wayland",
"--filesystem=home"
],
"modules": [
{
"name":"jpegoptim",
"sources":[{
"type": "archive",
"url": "https://github.com/tjko/jpegoptim/archive/v1.5.5.tar.gz",
"sha256": "90a309d1c092de358bb411d702281ac3039b489d03adb0bc3c4ef04cf0067d38"
}]
},
{
"name": "optipng",
"build-options": {
"config-opts": [
"--with-system-libs"
]
},
"sources":[{
"type": "archive",
"url": "https://netcologne.dl.sourceforge.net/project/optipng/OptiPNG/optipng-0.7.8/optipng-0.7.8.tar.gz",
"sha256":"25a3bd68481f21502ccaa0f4c13f84dcf6b20338e4c4e8c51f2cefbd8513398c"
}]
},
{
"name": "image-optimizer",
"buildsystem": "meson",
"config-opts": ["--buildtype=release"],
"sources": [{
"type": "archive",
"url": "https://github.com/GijsGoudzwaard/Image-Optimizer/archive/refs/tags/0.1.25.tar.gz",
"sha256": "9f32da2d1c439e80f4f78b022d0043af0e24ed6f278955ed7ac09d5cc63d5d8e"
},
{
"type": "patch",
"path": "elementary-theme.patch"
}],
"post-install": [
"mkdir -p /app/share/icons/hicolor/scalable/apps && mv /app/share/icons/hicolor/128x128@2/apps/${FLATPAK_ID}.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
"find /app/share/icons/hicolor -type f -not -path \"*scalable*\" -not -path \"*actions*\" -name \"*.svg\" -delete"
]
}]
}