idea added by snap + bug fix in installPackage fct
This commit is contained in:
parent
dee0e824a1
commit
97522021a2
4 changed files with 24 additions and 10 deletions
|
@ -259,7 +259,7 @@ function installAppFromArchive () {
|
||||||
# TODO: update npm before update/install pkg
|
# TODO: update npm before update/install pkg
|
||||||
#
|
#
|
||||||
function installPackage () {
|
function installPackage () {
|
||||||
typeset pkg="$*"
|
typeset pkg="$2"
|
||||||
typeset ret_code
|
typeset ret_code
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
|
@ -318,7 +318,7 @@ function installPackage () {
|
||||||
if which snap >/dev/null; then
|
if which snap >/dev/null; then
|
||||||
printf "[SNAP] Installing by $pkg "
|
printf "[SNAP] Installing by $pkg "
|
||||||
printf "\n[SNAP] installing by $pkg\n" &>> $logFile
|
printf "\n[SNAP] installing by $pkg\n" &>> $logFile
|
||||||
sudo snap install $pkg &>> $logFile
|
sudo snap install $pkg --classic &>> $logFile
|
||||||
ret_code=$?
|
ret_code=$?
|
||||||
retCode $ret_code
|
retCode $ret_code
|
||||||
printf "\n"
|
printf "\n"
|
||||||
|
|
|
@ -865,12 +865,19 @@ function installEclipse () {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#TODO:
|
#
|
||||||
|
# install IDEA Apps (headless)
|
||||||
|
#
|
||||||
function installIdea () {
|
function installIdea () {
|
||||||
if which umake >/dev/null; then
|
msg "Installing Intellij-IDEA"
|
||||||
msg "Umake installing : Idea"
|
installAppsFromList idea
|
||||||
sudo umake ide idea
|
}
|
||||||
fi
|
|
||||||
|
#
|
||||||
|
# install IDEA Apps (Menu)
|
||||||
|
#
|
||||||
|
function installIdeaMenu () {
|
||||||
|
installAppsFromListMenu idea
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -908,14 +915,15 @@ function installVisualStudioCodeMenu () {
|
||||||
#
|
#
|
||||||
function installAndroidStudio () {
|
function installAndroidStudio () {
|
||||||
msg "Installing Android-Studio"
|
msg "Installing Android-Studio"
|
||||||
installAppsFromList android-studio
|
installAppsFromList androidstudio
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# install Android-Studio Apps (Menu)
|
# install Android-Studio Apps (Menu)
|
||||||
#
|
#
|
||||||
function installAndroidStudioMenu () {
|
function installAndroidStudioMenu () {
|
||||||
installAppsFromListMenu android-studio
|
installAppsFromListMenu androidstudio
|
||||||
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# install SublimeText Apps (headless)
|
# install SublimeText Apps (headless)
|
||||||
|
|
|
@ -403,7 +403,8 @@ qttools5-dev-tools;apt;qt;qttools5-dev-tools
|
||||||
qttools5-examples;apt;qt;qttools5-examples
|
qttools5-examples;apt;qt;qttools5-examples
|
||||||
qttools5-doc-html;apt;qt;qttools5-doc-html
|
qttools5-doc-html;apt;qt;qttools5-doc-html
|
||||||
fbreader;apt;ebook;fbreader
|
fbreader;apt;ebook;fbreader
|
||||||
android-studio;apt;android-studio;android-studio"
|
android-studio;apt;android-studio;android-studio
|
||||||
|
intellij-idea-community;snap;idea;idea"
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------#
|
#-----------------------------------------------------------------------------#
|
||||||
# Specific Repo list and functions #
|
# Specific Repo list and functions #
|
||||||
|
@ -479,6 +480,9 @@ function addSpecificRepo_VSCode () {
|
||||||
"deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
|
"deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Android-Studio repo
|
||||||
|
#
|
||||||
function addSpecificRepo_AndroidStudio () {
|
function addSpecificRepo_AndroidStudio () {
|
||||||
addPPA "ppa:maarten-fonville/android-studio"
|
addPPA "ppa:maarten-fonville/android-studio"
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,6 +41,8 @@ echo "--[ Yggdrasil log ]--[ "$cDate" ]--[ "$cTime" ]-----------------------" >>
|
||||||
while getopts ":h,v,f,c,t,u" option; do
|
while getopts ":h,v,f,c,t,u" option; do
|
||||||
case "$option" in
|
case "$option" in
|
||||||
t) #test purpose only
|
t) #test purpose only
|
||||||
|
installIdea
|
||||||
|
#installNetTools
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
f) # install all apps
|
f) # install all apps
|
||||||
|
|
Loading…
Reference in a new issue