-
Notifications
You must be signed in to change notification settings - Fork 9
/
com.jetbrains.PyCharm-Community.yaml
92 lines (87 loc) · 3.19 KB
/
com.jetbrains.PyCharm-Community.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
81
82
83
84
85
86
87
88
89
90
91
92
app-id: com.jetbrains.PyCharm-Community
runtime: org.freedesktop.Sdk
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: pycharm
separate-locales: false
rename-icon: pycharm
finish-args:
- --share=ipc
- --socket=x11
- --share=network
- --socket=pulseaudio
- --filesystem=host
- --socket=session-bus
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.secrets
- --filesystem=xdg-run/keyring
- --device=all
- --env=PYCHARM_JDK=${FLATPAK_DEST}/pycharm/jre64/
- --env=PATH=/app/bin:/usr/bin:/app/extensions/bin:/app/packages/bin
- --env=PYTHONPATH=/app/packages/python
add-extensions:
com.jetbrains.PyCharm.Extensions:
directory: extensions
version: '22.08'
add-ld-path: lib
merge-dirs: bin;lib
subdirectories: true
no-autodownload: true
com.jetbrains.PyCharm.Packages:
directory: packages
version: '22.08'
add-ld-path: lib
merge-dirs: bin;lib;python
subdirectories: true
no-autodownload: true
modules:
- shared-modules/libsecret/libsecret.json
- python3-virtualenv.yaml
- python3-pipenv.yaml
- python3-poetry.yaml
- name: pycharm
buildsystem: simple
build-commands:
- mkdir pycharm
- tar xzfv pycharm-community.tar.gz --directory=pycharm/ --strip-components=1
- rm -f pycharm/help/*
- install -dm755 ${FLATPAK_DEST}/bin
- install -dm755 ${FLATPAK_DEST}/pycharm
- cp -r pycharm/* ${FLATPAK_DEST}/pycharm
- chmod -R a-s,go+rX,go-w ${FLATPAK_DEST}/pycharm
- python3 ${FLATPAK_DEST}/pycharm/plugins/python-ce/helpers/pydev/setup_cython.py
build_ext --inplace
- install pycharm/bin/pycharm.sh ${FLATPAK_DEST}/bin/pycharm
- install -t ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps -Dm644 pycharm/bin/pycharm.svg
- install -t ${FLATPAK_DEST}/share/applications/ -Dm644 com.jetbrains.PyCharm-Community.desktop
- install -t ${FLATPAK_DEST}/share/appdata/ -Dm644 com.jetbrains.PyCharm-Community.appdata.xml
- icon_in="${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/pycharm.svg"; icon_out="${FLATPAK_ID}.png";
for s in {32,64,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 -d "${FLATPAK_DEST}/extensions"
- install -d "${FLATPAK_DEST}/packages"
- cat idea.properties | tee -a ${FLATPAK_DEST}/bin/idea.properties
sources:
- type: file
url: https://download.jetbrains.com/python/pycharm-community-2024.2.2.tar.gz
sha256: 4f30b1f877a5909dcd181e95305ec43d17c36743583d7dcf0180e700d44a3407
dest-filename: pycharm-community.tar.gz
x-checker-data:
type: jetbrains
code: PCC
- type: file
path: com.jetbrains.PyCharm-Community.appdata.xml
- type: file
path: com.jetbrains.PyCharm-Community.desktop
- type: file
path: idea.properties
- name: wrapper
buildsystem: meson
config-opts:
- -Deditor_binary=/app/pycharm/bin/pycharm.sh
- -Dprogram_name=pycharm
- -Deditor_title=PyCharm
sources:
- type: dir
path: jetbrains-flatpak-wrapper