Still working on automating VM building for JoeyDev.

This commit is contained in:
Scott Duensing 2021-06-16 20:45:44 -05:00
parent 6d5560a9ef
commit a93c83c32e
2 changed files with 24 additions and 19 deletions

View file

@ -484,4 +484,6 @@ int main(int argc, char *argv[]) {
jlUtilDie("Clean Exit."); jlUtilDie("Clean Exit.");
} }
return 0;
} }

View file

@ -61,13 +61,13 @@ function buildMacOSXSDK() {
if [[ ! -z ${G_AUTOMATED} ]]; then if [[ ! -z ${G_AUTOMATED} ]]; then
XCODE=${G_XCODE_FILE} XCODE=${G_XCODE_FILE}
if [[ ! -e "${XCODE}" ]]; then if [[ ! -e "${XCODE}" ]]; then
return 0 return 1
fi fi
else else
if [[ ! -e "${OSX}/SDK" ]]; then if [[ ! -e "${OSX}/SDK" ]]; then
tFileBrowser XCODE "Please locate your XCode XIP" .xip .. tFileBrowser XCODE "Please locate your XCode XIP" .xip ..
if [[ -z ${XCODE} || "${XCODE}" == "" ]]; then if [[ -z ${XCODE} || "${XCODE}" == "" ]]; then
return 0 return 1
fi fi
fi fi
fi fi
@ -87,6 +87,8 @@ function buildMacOSXSDK() {
G_IS_INSTALLED[$G_MAC64]=1 G_IS_INSTALLED[$G_MAC64]=1
configWrite configWrite
configRead configRead
return 0
} }
@ -462,7 +464,7 @@ function installIIgs() {
echo "#!/bin/bash" > "${O}" echo "#!/bin/bash" > "${O}"
echo "IIGS=${IIGS}" >> "${O}" echo "IIGS=${IIGS}" >> "${O}"
echo "if ! mount | grep \${IIGS}/ORCA | grep -q hfsplus; then" >> "${O}" echo "if ! mount | grep \${IIGS}/ORCA | grep -q hfsplus; then" >> "${O}"
echo -e "\tfsck.hfsplus \${IIGS}/hfsDrive.img" >> "${O}" echo -e "\tfsck.hfsplus -dfary \${IIGS}/hfsDrive.img" >> "${O}"
echo -e "\tIIGSDISK=\$(sudo losetup --partscan --find --show \${IIGS}/hfsDrive.img)" >> "${O}" echo -e "\tIIGSDISK=\$(sudo losetup --partscan --find --show \${IIGS}/hfsDrive.img)" >> "${O}"
echo -e "\tsudo mount \${IIGSDISK} \${IIGS}/ORCA" >> "${O}" echo -e "\tsudo mount \${IIGSDISK} \${IIGS}/ORCA" >> "${O}"
echo -e "\techo LOOP=\${IIGSDISK} > \${IIGS}/lastMount.cfg" >> "${O}" echo -e "\techo LOOP=\${IIGSDISK} > \${IIGS}/lastMount.cfg" >> "${O}"
@ -481,6 +483,7 @@ function installIIgs() {
chmod +x "${O}" chmod +x "${O}"
fallocate -l 32M "${IIGS}/hfsDrive.img" fallocate -l 32M "${IIGS}/hfsDrive.img"
mkfs.hfs -v IIgs "${IIGS}/hfsDrive.img" mkfs.hfs -v IIgs "${IIGS}/hfsDrive.img"
fsck.hfsplus -dfary "${IIGS}/hfsDrive.img"
fi fi
"${IIGS}/mountORCA.sh" "${IIGS}/mountORCA.sh"
@ -681,7 +684,7 @@ function installLinux64() {
function installmacOS32() { function installmacOS32() {
buildMacOSXSDK buildMacOSXSDK && \
buildPCDeps \ buildPCDeps \
"macos32" \ "macos32" \
"macOS/i386" \ "macOS/i386" \
@ -693,7 +696,7 @@ function installmacOS32() {
function installmacOS64() { function installmacOS64() {
buildMacOSXSDK buildMacOSXSDK && \
buildPCDeps \ buildPCDeps \
"macos64" \ "macos64" \
"macOS/x64" \ "macOS/x64" \