diff --git a/roles/notepad++/files/notepad++.desktop b/roles/notepad++/files/notepad++.desktop new file mode 100644 index 0000000..7a27f96 --- /dev/null +++ b/roles/notepad++/files/notepad++.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=Notepad++ +GenericName=Notepad++ +Comment=A simple IDE +Exec=wine "/opt/notepad++/notepad++.exe" +Icon=notepad++ +Terminal=false +Type=Application +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++; +Categories=Education;Development;ComputerScience; +StartupNotify=true diff --git a/roles/notepad++/files/notepad++.png b/roles/notepad++/files/notepad++.png new file mode 100644 index 0000000..0c3791e Binary files /dev/null and b/roles/notepad++/files/notepad++.png differ diff --git a/roles/notepad++/tasks/main_lin.yml b/roles/notepad++/tasks/main_lin.yml index 3e194ff..3eb005d 100644 --- a/roles/notepad++/tasks/main_lin.yml +++ b/roles/notepad++/tasks/main_lin.yml @@ -19,6 +19,24 @@ - name: Download and unpack Notepad++ unarchive: - src: https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.5.7/npp.8.5.7.portable.x64.zip + src: https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.8.5/npp.8.8.5.portable.x64.zip dest: /opt/notepad++ remote_src: yes + +- name: Install icon + block: + - file: + path: /usr/local/share/icons + state: directory + - copy: + src: notepad++.png + dest: /usr/local/share/icons/notepad++.png + +- name: Create .desktop file + block: + - file: + path: /usr/local/share/applications + state: directory + - copy: + dest: /usr/local/share/applications/notepad++.desktop + src: notepad++.desktop