paulbsd-salt/states/androidstudio/init.sls

24 lines
946 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
# https://developer.android.com/studio/archive.html
{%- from "androidstudio/map.jinja" import androidstudio with context %}
{%- if salt['file.grep'](androidstudio.install_dir + '/android-studio/build.txt', androidstudio.version_regex)['retcode'] == 1 or not salt['file.file_exists'](androidstudio.install_dir + '/android-studio/build.txt') %}
androidstudio-archive-extract:
archive.extracted:
- name: {{ androidstudio.install_dir }}
- source: {{ androidstudio.mirror }}/{{ androidstudio.version }}/android-studio-ide-{{ androidstudio.tag }}-linux.tar.gz
2020-09-12 17:41:35 +02:00
- skip_verify: true
2020-07-10 00:58:55 +02:00
- archive_format: tar
2020-09-12 17:41:35 +02:00
- overwrite: true
2020-07-10 00:58:55 +02:00
androidstudio-shortcut:
file.managed:
- name: /usr/share/applications/jetbrains-studio.desktop
- source: salt://androidstudio/jetbrains-studio.desktop.j2
- user: root
- group: root
- mode: 644
- template: jinja
- onchanges:
- androidstudio-archive-extract
{%- endif %}