2
2
# One-key semi-automatic installer of macOS on VirtualBox
3
3
# (c) img2tab, licensed under GPL2.0 or higher
4
4
# url: https://github.com/img2tab/macos-guest-virtualbox
5
- # version 0.62.1
5
+ # version 0.63.0
6
6
7
7
# Requirements: 37.5GB available storage on host
8
8
# Dependencies: bash>=4.0, unzip, wget, dmg2img,
102
102
# VirtualBox in ${PATH}
103
103
# Cygwin
104
104
if [ -n " $( cygcheck -V 2> /dev/null) " ]; then
105
- if [ -n " $( cmd.exe /d /s /c call VBoxManage -v 2> /dev/null) " ]; then
105
+ if [ -n " $( cmd.exe /d /s /c call VBoxManage.exe -v 2> /dev/null) " ]; then
106
106
function VBoxManage() {
107
- cmd.exe /d /s /c call VBoxManage " $@ "
107
+ cmd.exe /d /s /c call VBoxManage.exe " $@ "
108
108
}
109
109
else
110
110
cmd_path_VBoxManage=' C:\Program Files\Oracle\VirtualBox\VBoxManage.exe'
@@ -117,24 +117,29 @@ if [ -n "$(cygcheck -V 2>/dev/null)" ]; then
117
117
echo " Found VBoxManage"
118
118
else
119
119
echo " Please make sure VirtualBox is installed, and that the path to the"
120
- echo " VBoxManage executable is in the PATH variable, or assigned in the script"
120
+ echo " VBoxManage.exe executable is in the PATH variable, or assigned in the script"
121
121
printf ' to the variable ' ${whiteonblack} ' cmd_path_VBoxManage' ${defaultcolor} ' including the name of the executable.'
122
122
exit
123
123
fi
124
124
fi
125
125
# Windows Subsystem for Linux (WSL)
126
126
elif [[ " $( cat /proc/sys/kernel/osrelease 2> /dev/null) " =~ Microsoft ]]; then
127
- wsl_path_VBoxManage=' /mnt/c/Program Files/Oracle/VirtualBox/VBoxManage.exe'
128
- if [ -z " $( VBoxManage -v 2> /dev/null) " ]; then
127
+ if [ -n " $( VBoxManage.exe -v 2> /dev/null) " ]; then
128
+ function VBoxManage() {
129
+ VBoxManage.exe " $@ "
130
+ }
131
+ else
132
+ wsl_path_VBoxManage=' /mnt/c/Program Files/Oracle/VirtualBox/VBoxManage.exe'
133
+ echo " Can't find VBoxManage in PATH variable,"
129
134
echo " checking ${wsl_path_VBoxManage} "
130
135
if [ -n " $( " ${wsl_path_VBoxManage} " -v 2> /dev/null) " ]; then
131
136
function VBoxManage() {
132
137
" ${wsl_path_VBoxManage} " " $@ "
133
138
}
134
139
echo " Found VBoxManage"
135
140
else
136
- echo " Please make sure VirtualBox is installed, and that the path to the"
137
- echo " VBoxManage executable is in the PATH variable, or assigned in the script"
141
+ echo " Please make sure VirtualBox is installed on Windows , and that the path to the"
142
+ echo " VBoxManage.exe executable is in the PATH variable, or assigned in the script"
138
143
printf ' to the variable ' ${whiteonblack} ' wsl_path_VBoxManage' ${defaultcolor} ' including the name of the executable.'
139
144
exit
140
145
fi
0 commit comments