Commit 7c7a0f97 authored by Ed Reel's avatar Ed Reel Committed by GitHub

Update android_studio from 3.4.1.0 to 3.5.3.0 (#3802)

parent 89624325
......@@ -3,9 +3,12 @@ require 'package'
class Android_studio < Package
description 'Android Studio is the official IDE for Android development.'
homepage 'https://developer.android.com/studio'
version '3.4.1.0'
source_url 'https://dl.google.com/dl/android/studio/ide-zips/3.4.1.0/android-studio-ide-183.5522156-linux.tar.gz'
source_sha256 '60488b63302fef657367105d433321de248f1fb692d06dba6661efec434b9478'
version '3.5.3.0'
case ARCH
when 'x86_64'
source_url 'https://dl.google.com/dl/android/studio/ide-zips/3.5.3.0/android-studio-ide-191.6010548-linux.tar.gz'
source_sha256 'af630d40f276b0d169c6ac8c7663a989f562b0ac48a1d3f0d720f5b6472355db'
end
depends_on 'jdk8'
depends_on 'xdg_base'
......@@ -23,11 +26,11 @@ class Android_studio < Package
FileUtils.cd(CREW_DEST_PREFIX + '/bin') do
FileUtils.ln_s(CREW_PREFIX + '/share/android-studio/bin/studio.sh', 'studio')
end
FileUtils.mkdir_p(CREW_DEST_PREFIX + '/.config/.AndroidStudio3.4')
FileUtils.mkdir_p(CREW_DEST_PREFIX + '/.config/.AndroidStudio3.5')
FileUtils.mkdir_p(CREW_DEST_PREFIX + '/.config/Android')
FileUtils.mkdir_p(CREW_DEST_HOME)
FileUtils.cd(CREW_DEST_HOME) do
FileUtils.ln_sf(CREW_PREFIX + '/.config/.AndroidStudio3.4/', '.AndroidStudio3.4')
FileUtils.ln_sf(CREW_PREFIX + '/.config/.AndroidStudio3.5/', '.AndroidStudio3.5')
FileUtils.ln_sf(CREW_PREFIX + '/.config/Android/', 'Android')
end
end
......@@ -40,7 +43,7 @@ class Android_studio < Package
puts 'settings, SDK and tools, execute the following:'.lightblue
puts 'crew remove android_studio'.lightblue
puts "rm -rf #{CREW_PREFIX}/.config/Android".lightblue
puts "rm -rf #{CREW_PREFIX}/.config/.AndroidStudio3.3".lightblue
puts "rm -rf #{CREW_PREFIX}/.config/.AndroidStudio3.5".lightblue
puts
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment