From 46a4f2538cee9b638cec7b75c27c6cb52ea13561 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 2 Oct 2021 13:03:43 +0200 Subject: [PATCH] updated android-studio state --- states/androidstudio/defaults.yaml | 2 ++ states/androidstudio/install.sls | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/states/androidstudio/defaults.yaml b/states/androidstudio/defaults.yaml index 70e8801..8120f47 100644 --- a/states/androidstudio/defaults.yaml +++ b/states/androidstudio/defaults.yaml @@ -5,4 +5,6 @@ androidstudio: install_dir: /usr/local/apps release_dir: /usr/local/apps/releases version: 4.2.1.0 + tag: 202.7351085 + version_regex: 202.*7351085 config: {} diff --git a/states/androidstudio/install.sls b/states/androidstudio/install.sls index 588b00e..749527d 100644 --- a/states/androidstudio/install.sls +++ b/states/androidstudio/install.sls @@ -2,11 +2,13 @@ {%- from "androidstudio/map.jinja" import androidstudio with context %} androidstudio-archive-extract: archive.extracted: - - name: {{ androidstudio.release_dir }} + - name: {{ androidstudio.release_dir }}/androidstudio-{{ androidstudio.version }} - source: {{ androidstudio.mirror }}/{{ androidstudio.version }}/android-studio-ide-{{ androidstudio.tag }}-linux.tar.gz - skip_verify: true - archive_format: tar - overwrite: true + - options: --strip 1 + - enforce_toplevel: false - if_missing: {{ androidstudio.release_dir }}/androidstudio-{{ androidstudio.version }} - watch: - file: androidstudio-link