Application android-studio

From campisano.org
Jump to navigation Jump to search

Android Studio

Install

# shared/opt install schema v1.3.1
su -
#### as root ####
# dependencies
apt-get -qq -y install wget coreutils findutils
apt-get -qq -y install tar gzip
# binary
SOFTWARE_PATH="/home/shared/opt/software"
NAME="android-studio"
VERSION="193.6626763"
URL="https://redirector.gvt1.com/edgedl/android/studio/ide-zips/4.0.1.0/android-studio-ide-${VERSION}-linux.tar.gz"
umask 0027
mkdir -p "${SOFTWARE_PATH}/tmp/${NAME}_${VERSION}"
cd "${SOFTWARE_PATH}/tmp"
wget -c --no-check-certificate "${URL}"
tar -xzf "android-studio-ide-${VERSION}-linux.tar.gz" && mv "android-studio/"* "${NAME}_${VERSION}" && rmdir "android-studio"
cd "${SOFTWARE_PATH}"
chown -R root:users "tmp"
find "tmp" -type d -exec chmod a-s,u+rwx,g+rx,g-w,o-rwx {} \;
find "tmp" -type f -exec chmod a-s,u+rw,g+r,g-w,o-rwx {} \;
mv "tmp/${NAME}_${VERSION}" "${NAME}_${VERSION}"
rm -rf tmp
ln -s -f -T "${NAME}_${VERSION}" "${NAME}"
exit
#### as final user ####
SOFTWARE_PATH="/home/shared/opt/software"
NAME="android-studio"
"${SOFTWARE_PATH}"/android-studio/bin/studio.sh;