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
|
Loading…
Add table
Add a link
Reference in a new issue