forked from katalon-studio/katalon-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
33 lines (26 loc) · 811 Bytes
/
install.sh
File metadata and controls
33 lines (26 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
# Katalon Studio
package=Katalon_Studio_Linux.tar.gz
lowercase(){
echo "$1" | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/"
}
OS=`lowercase \`uname\``
KERNEL=`uname -r`
MACH=`uname -m`
if [ "$OS" == "darwin" ]; then
OS=mac
wget -O Katalon_Studio.dmg https://backend.katalon.com/download-lastest-version?platform=mac_64
sudo hdiutil attach Katalon_Studio.dmg
sudo cp -R /Volumes/Katalon\ Studio /Applications
sudo hdiutil unmount /Volumes/Katalon\ Studio
rm Katalon_Studio.dmg
else
OS=`uname`
if [ "${OS}" = "Linux" ] ; then
wget -O $package https://backend.katalon.com/download-lastest-version?platform=linux_64
mkdir -p /opt/katalonstudio
tar -zxvf $package -C /opt/katalonstudio/
ls
rm $package
fi
fi