Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Install
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PET Computação
Install
Commits
127fb151
Commit
127fb151
authored
8 years ago
by
Gabriel Olescki
Browse files
Options
Downloads
Patches
Plain Diff
Adicionando instalação do ruby, rails e unity3d
parent
9d4d4375
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.sh
+23
-2
23 additions, 2 deletions
install.sh
with
23 additions
and
2 deletions
install.sh
+
23
−
2
View file @
127fb151
...
...
@@ -29,9 +29,28 @@ done
#Ruby precisa de uma função especial para ser instalado através do RVM
function
ruby
{
gpg
--keyserver
hkp://keys.gnupg.net
--recv-keys
409B6B1796C275462A1703113804BB82D39DC0E3
curl
-sSL
https://get.rvm.io | bash
-s
stable
cd
/tmp
curl
-sSL
https://get.rvm.io
-o
rvm.sh
cat
/tmp/rvm.sh | bash
-s
stable
--rails
source
$HOME
/.rvm/scripts/rvm
rvm
install
$RUBY_VERSION
cd
-
}
function
unity3d
{
if
[[
"
${
DISTRO
}
"
==
'apt-get'
]]
;
then
cd
/tmp
curl
-o
unity-editor-5.5.0f3+20161125_amd64.deb http://download.unity3d.com/download_unity/linux/unity-editor-5.5.0f3+20161125_amd64.deb
$ROOT
dpkg
-i
unity-editor-5.5.0f3+20161125_amd64.deb
cd
-
else
cd
/tmp
wget http://download.unity3d.com/download_unity/linux/unity-editor-installer-5.5.0f3+20161125.sh
chmod
+x unity-editor-installer-5.5.0f3+20161125.sh
source
unity-editor-installer-5.5.0f3+20161125.sh
cd
-
fi
}
function
update
{
...
...
@@ -39,6 +58,7 @@ function update {
$(
echo
"
$ROOT
$DISTRO
upgrade -y"
)
}
#Instala todos os pacotes no arquivo packages
function
install
{
PACKAGES
=
$(
cat
"
$ABSOLUTE_PATH
/packages.txt"
|
cut
-d
:
-f2
|
tr
'\r\n'
' '
)
...
...
@@ -48,6 +68,7 @@ function fresh-install {
update
install
$(
echo
"
$ROOT
$DISTRO
install -y
$PACKAGES
"
)
unity3d
ruby
}
...
...
@@ -64,7 +85,7 @@ function help {
echo
" -l lista os pacotes disponíveis"
echo
"exemplo de uso:"
echo
"
$(
basename
"
$0
"
)
php mysql ruby"
echo
"AVISO: por padrão, o ruby não
é
instalado. Para instalar, execute
$(
basename
"
$0
"
)
ruby"
echo
"AVISO: por padrão, o ruby
e o unity3d
não
são
instalado
s
. Para instalar, execute
$(
basename
"
$0
"
)
ruby
unity3d
"
}
#Se o arquivo não existe
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment