Source
8
8
app_path=$1
9
9
package_name=$2
10
10
11
11
if [ ! -e $app_path ]; then
12
12
echo "file $app_path not found..."
13
13
exit 1
14
14
fi
15
15
16
16
readonly OS_VERSION=$(uname -r | awk -F. '{print $1}')
17
17
case $OS_VERSION in
18
+
"24")
19
+
readonly OS_X_VERSION="15.0"
20
+
;;
18
21
"23")
19
22
readonly OS_X_VERSION="14.0"
20
23
;;
21
24
"22")
22
25
readonly OS_X_VERSION="13.0"
23
26
;;
24
27
"21")
25
28
readonly OS_X_VERSION="12.0"
26
29
;;
27
30
"20")