Add .desktop files, update download links for JetBrains IDEs on Ubuntu
This commit is contained in:
parent
61e9e01978
commit
889083aee0
6 changed files with 109 additions and 4 deletions
11
roles/clion/files/clion.desktop
Normal file
11
roles/clion/files/clion.desktop
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Desktop Entry]
|
||||
Name=CLion
|
||||
GenericName=CLion
|
||||
Comment=JetBrains CLion IDE
|
||||
MimeType=text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-moc;text/x-c;text/x-c++;
|
||||
Exec=/opt/CLion/bin/clion.sh
|
||||
Icon=clion
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Education;Development;ComputerScience;
|
||||
StartupNotify=true
|
32
roles/clion/tasks/main_lin.yml
Normal file
32
roles/clion/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
- name: Install CLion
|
||||
block:
|
||||
- name: Create destination for JetBrains CLion
|
||||
file:
|
||||
path: /opt/CLion
|
||||
state: directory
|
||||
- name: Download and unpack JetBrains CLion
|
||||
unarchive:
|
||||
src: https://data.services.jetbrains.com/products/download?code=CL&platform=linux
|
||||
dest: /opt/CLion
|
||||
extra_opts: --strip-components=1
|
||||
creates: /opt/CLion/build.txt
|
||||
remote_src: yes
|
||||
|
||||
- name: Install icon
|
||||
block:
|
||||
- file:
|
||||
path: /usr/local/share/icons
|
||||
state: directory
|
||||
- copy:
|
||||
src: /opt/CLion/bin/clion.svg
|
||||
remote_src: true
|
||||
dest: /usr/local/share/icons/clion.svg
|
||||
|
||||
- name: Create .desktop file
|
||||
block:
|
||||
- file:
|
||||
path: /usr/local/share/applications
|
||||
state: directory
|
||||
- copy:
|
||||
dest: /usr/local/share/applications/clion.desktop
|
||||
src: clion.desktop
|
11
roles/idea/files/idea.desktop
Normal file
11
roles/idea/files/idea.desktop
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Desktop Entry]
|
||||
Name=IDEA
|
||||
GenericName=IDEA
|
||||
Comment=JetBrains IDEA
|
||||
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
|
||||
Exec=/opt/IDEA/bin/idea.sh
|
||||
Icon=idea
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Development;ComputerScience;
|
||||
StartupNotify=true
|
|
@ -6,7 +6,27 @@
|
|||
state: directory
|
||||
- name: Download and unpack JetBrains IDEA
|
||||
unarchive:
|
||||
src: https://download.jetbrains.com/idea/ideaIC-2023.2.1.tar.gz
|
||||
src: https://data.services.jetbrains.com/products/download?code=IIU&platform=linux
|
||||
dest: /opt/IDEA
|
||||
creates: /opt/IDEA/idea-IC-232.9559.62/build.txt
|
||||
extra_opts: --strip-components=1
|
||||
creates: /opt/IDEA/build.txt
|
||||
remote_src: yes
|
||||
|
||||
- name: Install icon
|
||||
block:
|
||||
- file:
|
||||
path: /usr/local/share/icons
|
||||
state: directory
|
||||
- copy:
|
||||
src: /opt/IDEA/bin/idea.svg
|
||||
remote_src: true
|
||||
dest: /usr/local/share/icons/idea.svg
|
||||
|
||||
- name: Create .desktop file
|
||||
block:
|
||||
- file:
|
||||
path: /usr/local/share/applications
|
||||
state: directory
|
||||
- copy:
|
||||
dest: /usr/local/share/applications/idea.desktop
|
||||
src: idea.desktop
|
||||
|
|
11
roles/pycharm/files/pycharm.desktop
Normal file
11
roles/pycharm/files/pycharm.desktop
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Desktop Entry]
|
||||
Name=PyCharm
|
||||
GenericName=PyCharm
|
||||
Comment=JetBrains PyCharm IDE
|
||||
MimeType=text/x-python;
|
||||
Exec=/opt/PyCharm/bin/pycharm.sh
|
||||
Icon=pycharm
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Development;ComputerScience;
|
||||
StartupNotify=true
|
|
@ -6,7 +6,27 @@
|
|||
state: directory
|
||||
- name: Download and unpack JetBrains PyCharm
|
||||
unarchive:
|
||||
src: https://download.jetbrains.com/python/pycharm-community-2023.2.1.tar.gz
|
||||
src: https://data.services.jetbrains.com/products/download?code=PCP&platform=linux
|
||||
dest: /opt/PyCharm
|
||||
creates: /opt/PyCharm/pycharm-community-2023.2.1/build.txt
|
||||
extra_opts: --strip-components=1
|
||||
creates: /opt/PyCharm/build.txt
|
||||
remote_src: yes
|
||||
|
||||
- name: Install icon
|
||||
block:
|
||||
- file:
|
||||
path: /usr/local/share/icons
|
||||
state: directory
|
||||
- copy:
|
||||
src: /opt/PyCharm/bin/pycharm.svg
|
||||
remote_src: true
|
||||
dest: /usr/local/share/icons/clion.svg
|
||||
|
||||
- name: Create .desktop file
|
||||
block:
|
||||
- file:
|
||||
path: /usr/local/share/applications
|
||||
state: directory
|
||||
- copy:
|
||||
dest: /usr/local/share/applications/pycharm.desktop
|
||||
src: pycharm.desktop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue