Install webcatalog icon from AppImage
This commit is contained in:
parent
960f853d1f
commit
65f44a8454
@ -32,7 +32,7 @@
|
|||||||
state: directory
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
- '{{ansible_env.HOME}}/.local/bin'
|
- '{{ansible_env.HOME}}/.local/bin'
|
||||||
- '{{ansible_env.HOME}}/.local/share/icon/hicolor/512x512/apps'
|
- '{{ansible_env.HOME}}/.local/share/icons/hicolor/512x512/apps'
|
||||||
|
|
||||||
- name: create symlink
|
- name: create symlink
|
||||||
file:
|
file:
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
appimage: 'WebCatalog-{{releases[0].version}}.AppImage'
|
appimage: 'WebCatalog-{{releases[0].version}}.AppImage'
|
||||||
- set_fact:
|
- set_fact:
|
||||||
filepath: '{{ansible_env.HOME}}/.local/bin/{{appimage}}'
|
filepath: '{{ansible_env.HOME}}/.local/bin/{{appimage}}'
|
||||||
|
iconpath: 'share/icons/hicolor/512x512/apps/webcatalog.png'
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
needs_installed:
|
needs_installed:
|
||||||
@ -28,13 +29,37 @@
|
|||||||
dest: '{{ansible_env.HOME}}/.local/bin/{{appimage}}'
|
dest: '{{ansible_env.HOME}}/.local/bin/{{appimage}}'
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
|
- name: create directories
|
||||||
|
file:
|
||||||
|
path: '{{item}}'
|
||||||
|
state: directory
|
||||||
|
with_items:
|
||||||
|
- '{{ansible_env.HOME}}/.local/bin'
|
||||||
|
- '{{ansible_env.HOME}}/.local/share/icons/hicolor/512x512/apps'
|
||||||
|
|
||||||
- name: create symlink
|
- name: create symlink
|
||||||
file:
|
file:
|
||||||
src: '{{filepath}}'
|
src: '{{filepath}}'
|
||||||
dest: '{{ansible_env.HOME}}/.local/bin/WebCatalog'
|
dest: '{{ansible_env.HOME}}/.local/bin/WebCatalog'
|
||||||
state: link
|
state: link
|
||||||
|
|
||||||
# TODO: icon for desktop file
|
- name: extract squashfs-root for app icon
|
||||||
|
when: needs_installed
|
||||||
|
command:
|
||||||
|
cmd: '{{ansible_env.HOME}}/.local/bin/WebCatalog --appimage-extract'
|
||||||
|
chdir: '/tmp'
|
||||||
|
|
||||||
|
- name: copy icon file
|
||||||
|
when: needs_installed
|
||||||
|
copy:
|
||||||
|
src: '/tmp/squashfs-root/usr/{{iconpath}}'
|
||||||
|
dest: '{{ansible_env.HOME}}/.local/{{iconpath}}'
|
||||||
|
|
||||||
|
- name: remove squashfs-root directory
|
||||||
|
when: needs_installed
|
||||||
|
file:
|
||||||
|
path: '/tmp/squashfs-root'
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: create desktop file
|
- name: create desktop file
|
||||||
template:
|
template:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user