paulbsd-salt/states/androidstudio/install.sls

31 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-10-02 12:46:10 +02:00
---
{%- from "androidstudio/map.jinja" import androidstudio with context %}
androidstudio-archive-extract:
archive.extracted:
2021-10-02 13:03:43 +02:00
- name: {{ androidstudio.release_dir }}/androidstudio-{{ androidstudio.version }}
2021-10-02 12:46:10 +02:00
- source: {{ androidstudio.mirror }}/{{ androidstudio.version }}/android-studio-ide-{{ androidstudio.tag }}-linux.tar.gz
- skip_verify: true
- archive_format: tar
- overwrite: true
2021-10-02 13:03:43 +02:00
- options: --strip 1
- enforce_toplevel: false
2021-10-02 12:46:10 +02:00
- if_missing: {{ androidstudio.release_dir }}/androidstudio-{{ androidstudio.version }}
- watch:
- file: androidstudio-link
- file: androidstudio-shortcut
androidstudio-link:
file.symlink:
- name: {{ androidstudio.install_dir }}/androidstudio
- target: {{ androidstudio.release_dir }}/androidstudio-{{ androidstudio.version }}
- force: true
androidstudio-shortcut:
file.managed:
- name: /usr/share/applications/jetbrains-studio.desktop
2023-03-11 10:08:26 +01:00
- source: salt://androidstudio/templates/jetbrains-studio.desktop.j2
2021-10-02 12:46:10 +02:00
- user: root
- group: root
- mode: 644
- template: jinja