updated telegram state

This commit is contained in:
Paul 2021-03-22 19:11:32 +01:00
parent a7996a325a
commit ab270ed63c
3 changed files with 17 additions and 4 deletions

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
*.png filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text

View File

@ -2,27 +2,35 @@
{%- from "telegram/map.jinja" import telegram with context %} {%- from "telegram/map.jinja" import telegram with context %}
telegram-archive-extract: telegram-archive-extract:
archive.extracted: archive.extracted:
- name: {{ telegram.dest_path }}{{ telegram.version }} - name: {{ telegram.release_dir }}/telegram-{{ telegram.version }}
- source: {{ telegram.mirror }}/v{{ telegram.version }}/tsetup.{{ telegram.version }}.tar.xz - source: {{ telegram.mirror }}/v{{ telegram.version }}/tsetup.{{ telegram.version }}.tar.xz
- skip_verify: true - skip_verify: true
- archive_format: tar - archive_format: tar
- enforce_toplevel: false - enforce_toplevel: false
- options: --transform 's/Telegram/telegram/g' --transform 's/Updater/updater/g' --strip 1 - options: --transform 's/Telegram/telegram/g' --transform 's/Updater/updater/g' --strip 1
- keep: true - keep: true
- if_missing: {{ telegram.dest_path }}{{ telegram.version }}/telegram - if_missing: {{ telegram.release_dir }}/telegram-{{ telegram.version }}/telegram
telegram-symlink: telegram-symlink:
file.symlink: file.symlink:
- name: {{ telegram.install_dir }}/telegram - name: {{ telegram.install_dir }}/telegram
- target: {{ telegram.dest_path }}{{ telegram.version }} - target: {{ telegram.release_dir }}/telegram-{{ telegram.version }}
- force: true - force: true
telegram-bin-symlink: telegram-bin-symlink:
file.symlink: file.symlink:
- name: /usr/bin/telegram - name: /usr/bin/telegram
- target: {{ telegram.dest_path }}{{ telegram.version }}/telegram - target: {{ telegram.install_dir }}/telegram/telegram
- force: true - force: true
telegram-icon:
file.managed:
- name: /usr/share/icons/telegram.png
- source: salt://telegram/telegram.png
- user: root
- group: root
- mode: 644
telegram-shortcut: telegram-shortcut:
file.managed: file.managed:
- name: /usr/share/applications/telegram.desktop - name: /usr/share/applications/telegram.desktop

BIN
states/telegram/telegram.png (Stored with Git LFS) Normal file

Binary file not shown.