Compare commits
1 Commits
65f44a8454
...
58b77079a4
Author | SHA1 | Date | |
---|---|---|---|
58b77079a4 |
@ -25,13 +25,34 @@
|
|||||||
dest: '{{filepath}}'
|
dest: '{{filepath}}'
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
|
- name: create directories
|
||||||
|
file:
|
||||||
|
path: '{{item}}'
|
||||||
|
state: directory
|
||||||
|
with_items:
|
||||||
|
- '{{ansible_env.HOME}}/.local/bin'
|
||||||
|
- '{{ansible_env.HOME}}/.local/share/icon/hicolor/512x512/apps'
|
||||||
|
|
||||||
- name: create symlink
|
- name: create symlink
|
||||||
file:
|
file:
|
||||||
src: '{{filepath}}'
|
src: '{{filepath}}'
|
||||||
dest: '{{ansible_env.HOME}}/.local/bin/Obsidian'
|
dest: '{{ansible_env.HOME}}/.local/bin/Obsidian'
|
||||||
state: link
|
state: link
|
||||||
|
|
||||||
# TODO: icon for desktop file
|
- name: extract squashfs-root for app icon
|
||||||
|
command:
|
||||||
|
cmd: '{{ansible_env.HOME}}/.local/bin/Obsidian --appimage-extract'
|
||||||
|
chdir: '/tmp'
|
||||||
|
|
||||||
|
- name: copy icon file
|
||||||
|
copy:
|
||||||
|
src: '/tmp/squashfs-root/usr/share/icons/hicolor/512x512/apps/obsidian.png'
|
||||||
|
dest: '{{ansible_env.HOME}}/.local/share/icon/hicolor/512x512/apps/'
|
||||||
|
|
||||||
|
- name: remove squashfs-root directory
|
||||||
|
file:
|
||||||
|
path: '/tmp/squashfs-root'
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: create desktop file
|
- name: create desktop file
|
||||||
template:
|
template:
|
||||||
|
@ -3,7 +3,7 @@ Name=Obsidian
|
|||||||
Exec={{ansible_env.HOME}}/.local/bin/Obsidian
|
Exec={{ansible_env.HOME}}/.local/bin/Obsidian
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Icon=obsidian
|
Icon={{ansible_env.HOME}}/.local/share/icon/hicolor/512x512/apps/obsidian.png
|
||||||
StartupWMClass=Obsidian
|
StartupWMClass=Obsidian
|
||||||
X-AppImage-Version={{latest.json.name}}
|
X-AppImage-Version={{latest.json.name}}
|
||||||
Comment=Private and flexible note‑taking app that adapts to the way you think.
|
Comment=Private and flexible note‑taking app that adapts to the way you think.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user