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
|
||||
#
|
||||
function installPackage () {
|
||||
typeset pkg="$*"
|
||||
typeset pkg="$2"
|
||||
typeset ret_code
|
||||
|
||||
case $1 in
|
||||
|
@ -318,7 +318,7 @@ function installPackage () {
|
|||
if which snap >/dev/null; then
|
||||
printf "[SNAP] Installing by $pkg "
|
||||
printf "\n[SNAP] installing by $pkg\n" &>> $logFile
|
||||
sudo snap install $pkg &>> $logFile
|
||||
sudo snap install $pkg --classic &>> $logFile
|
||||
ret_code=$?
|
||||
retCode $ret_code
|
||||
printf "\n"
|
||||
|
|
|
@ -865,12 +865,19 @@ function installEclipse () {
|
|||
fi
|
||||
}
|
||||
|
||||
#TODO:
|
||||
#
|
||||
# install IDEA Apps (headless)
|
||||
#
|
||||
function installIdea () {
|
||||
if which umake >/dev/null; then
|
||||
msg "Umake installing : Idea"
|
||||
sudo umake ide idea
|
||||
fi
|
||||
msg "Installing Intellij-IDEA"
|
||||
installAppsFromList idea
|
||||
}
|
||||
|
||||
#
|
||||
# install IDEA Apps (Menu)
|
||||
#
|
||||
function installIdeaMenu () {
|
||||
installAppsFromListMenu idea
|
||||
}
|
||||
|
||||
#
|
||||
|
@ -908,14 +915,15 @@ function installVisualStudioCodeMenu () {
|
|||
#
|
||||
function installAndroidStudio () {
|
||||
msg "Installing Android-Studio"
|
||||
installAppsFromList android-studio
|
||||
installAppsFromList androidstudio
|
||||
}
|
||||
|
||||
#
|
||||
# install Android-Studio Apps (Menu)
|
||||
#
|
||||
function installAndroidStudioMenu () {
|
||||
installAppsFromListMenu android-studio
|
||||
installAppsFromListMenu androidstudio
|
||||
}
|
||||
|
||||
#
|
||||
# install SublimeText Apps (headless)
|
||||
|
|
|
@ -403,7 +403,8 @@ qttools5-dev-tools;apt;qt;qttools5-dev-tools
|
|||
qttools5-examples;apt;qt;qttools5-examples
|
||||
qttools5-doc-html;apt;qt;qttools5-doc-html
|
||||
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 #
|
||||
|
@ -479,6 +480,9 @@ function addSpecificRepo_VSCode () {
|
|||
"deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
|
||||
}
|
||||
|
||||
#
|
||||
# Android-Studio repo
|
||||
#
|
||||
function addSpecificRepo_AndroidStudio () {
|
||||
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
|
||||
case "$option" in
|
||||
t) #test purpose only
|
||||
installIdea
|
||||
#installNetTools
|
||||
exit
|
||||
;;
|
||||
f) # install all apps
|
||||
|
|
Loading…
Reference in a new issue