-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom.jetbrains.PhpStorm.yaml
57 lines (57 loc) · 2.18 KB
/
com.jetbrains.PhpStorm.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
app-id: com.jetbrains.PhpStorm
command: phpstorm-desktop
runtime: org.freedesktop.Sdk
runtime-version: "18.08"
sdk: org.freedesktop.Sdk
separate-locales: false
tags:
- proprietary
finish-args:
- --device=dri
- --filesystem=host
- --filesystem=xdg-run/keyring
- --share=ipc
- --share=network
- --socket=x11
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.secrets
modules:
- shared-modules/gtk2/gtk2.json
- name: PhpStorm
buildsystem: simple
build-commands:
- unzip phpstorm_logos.zip
- install -D apply_extra /app/bin/apply_extra
- install -Dm755 phpstorm-desktop.sh "${FLATPAK_DEST}/bin/phpstorm-desktop"
- install -Dm644 logo.svg "${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg"
- icon_in=logo.svg;
icon_out="${FLATPAK_ID}.png";
for s in {16,24,32,48,96,128,256,512}; do
rsvg-convert "${icon_in}" -w "${s}" -h "${s}" -a -f png -o "${icon_out}";
install -p -Dm644 "${icon_out}" -t "${FLATPAK_DEST}/share/icons/hicolor/${s}x${s}/apps/";
done;
- install -Dm644 -t ${FLATPAK_DEST}/share/applications/ ${FLATPAK_ID}.desktop
- install -Dm644 -t ${FLATPAK_DEST}/share/metainfo/ ${FLATPAK_ID}.appdata.xml
sources:
- type: script
dest-filename: apply_extra
commands:
- mkdir phpstorm/
- tar -xzf phpstorm.tar.gz --directory=phpstorm/ --strip-components=1
- rm phpstorm.tar.gz
- type: extra-data
filename: phpstorm.tar.gz
url: https://download.jetbrains.com/webide/PhpStorm-2018.3.5.tar.gz
sha256: d8d39d3ddc2a62ddec326176e779e1e0d5d62ff2d058e28e12d3888e74119948
size: 311609827
- type: script
dest-filename: phpstorm-desktop.sh
commands:
- exec env PHPSTORM_JDK=/app/extra/phpstorm/jre64/ /app/extra/phpstorm/bin/phpstorm.sh "$@"
- type: file
sha256: ad12af802e1e273ea7a6bea6d44cf60eb0ef8cae38a91c94ffa553d6e4f2184a
url: https://resources.jetbrains.com/storage/products/phpstorm/docs/phpstorm_logos.zip
- type: file
path: com.jetbrains.PhpStorm.desktop
- type: file
path: com.jetbrains.PhpStorm.appdata.xml