#!/bin/sh |
# wget https://gist.githubusercontent.com/stefansundin/c89fd15bae5a58831790/raw/make-chrome-app.sh |
# chmod +x make-chrome-app.sh |
# ./make-chrome-app.sh |
echo'Note that the app will run with a separate data dir and thus not have your regular extensions and settings.' |
echo |
echo'What should the app be called?' |
read name |
echo |
if [ -d'$HOME/Applications/$name.app' ];then |
echo'That app already exists.' |
exit 1 |
fi |
echo'What is the url?' |
read url |
echo |
echo'What is the full path to the icon? (optional)' |
read icon |
chrome='/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' |
app='$HOME/Applications/$name.app/Contents' |
mkdir -p '$app/Resources''$app/MacOS''$app/Profile' |
# convert the icon |
if [ -f$icon ];then |
sips -s format tiff $icon --out '$app/Resources/icon.tiff' --resampleWidth 128 &> /dev/null |
tiff2icns -noLarge '$app/Resources/icon.tiff'&> /dev/null |
fi |
# create the executable |
cat >'$app/MacOS/$name'<<EOF |
#!/bin/sh |
exec '$chrome' --app='$url' --user-data-dir='$app/Profile' --disable-save-password-bubble '$@' |
EOF |
chmod +x '$app/MacOS/$name' |
# create Info.plist |
cat >'$app/Info.plist'<<EOF |
<?xml version='1.0' encoding='UTF-8'?> |
<!DOCTYPE plist PUBLIC '-//Apple//DTD PLIST 1.0//EN' “http://www.apple.com/DTDs/PropertyList-1.0.dtd”> |
<plist version=”1.0″> |
<dict> |
<key>CFBundleExecutable</key> |
<string>$name</string> |
<key>CFBundleIconFile</key> |
<string>icon</string> |
</dict> |
</plist> |
EOF |
# disable Chrome's first-run dialog |
touch '$app/Profile/First Run' |
#!/bin/sh |
# |
# File: macos-installer-to-iso.sh |
# |
# Create a bootable ISO image from a macOS installer to install VMware ESXi guests. |
# |
# https://gist.github.com/Kutkovsky/613e29f35d3ef420b23b59ecdf7a28e0 |
# Debug on: set -x |
set -eux |
# App Store downloads macOS isntaller to here: |
# /Applications/Install macOS Catalina.app |
buildDir=macos-build-iso |
installBuild=install_build |
target=Catalina |
macOsInstallerName='Install macOS ${target}' |
echo'Clean..' |
if [ -d'/Volumes/${installBuild}' ];then |
hdiutil detach /Volumes/${installBuild} |
fi |
if [ -d'/Volumes/${macOsInstallerName}' ];then |
hdiutil detach '/Volumes/${macOsInstallerName}' |
fi |
if [ -d'${buildDir}' ];then |
rm -rf ${buildDir} |
fi |
mkdir -p ${buildDir} |
hdiutil create -o '${buildDir}/${target}.cdr' -size 10000m -layout SPUD -fs HFS+J |
sudo hdiutil attach '${buildDir}/${target}.cdr.dmg' -noverify -mountpoint /Volumes/${installBuild} |
sudo '/Applications/${macOsInstallerName}.app/Contents/Resources/createinstallmedia' --volume /Volumes/${installBuild} --nointeraction |
hdiutil detach '/Volumes/${macOsInstallerName}' |
hdiutil convert '${buildDir}/${target}.cdr.dmg' -format UDTO -o '${buildDir}/${target}.iso' |
mv ${buildDir}/${target}.iso.cdr ${buildDir}/${target}.iso |
rm ${buildDir}/${target}.cdr.dmg |
# Now there should be an ISO called Catalina.iso in the `out` folder |
# Upload the resulted ISO to vSphere datastore (upload to an ESXi host) |
# Create a new VM as Guest OS set to `Other:Apple macOS 10.14 64-bit`. Don't start a VM |
# Then compatibility should set to `ESXi 6.7 update 2 and later` and Guest OS to `Windows 10 64-bit` |
# Start the VM, make sure that CDROM with datastore ISO (Catalina.iso) is connected |
# Disable the Network boot option in vSphere BIOS menu. Restart VM |
# Installer should start. You should choose Disk Utility, and initialize the VMware Virtual SATA Hard Drive Media |
# (since keyboard ain't work - using existing `Untitled` name) |
# Wait util installer completes. VM will not boot. Shutdown VM, change Guest OS profile back to `Other:Apple macOS 10.14 64-bit` |
# Once Catalina is installed, download the latest VMware tools and install it. |
# It took two reboots for me to completion (will require to unblock security extension) |
# Credits to Intel008 and Bogdam from https://communities.vmware.com/thread/611961 |
# Credits to mkuzmin https://github.com/jetbrains-infra/packer-builder-vsphere/blob/master/examples/macos/setup/iso-macos.sh |
# Credits to pat-s https://gist.github.com/agentsim/00cc38c693e7d0e1b36a2080870d955b |
Thanks! This actually worked with macOS Catalina 10.15.4 Build 19E287 and VMware Fusion Professional Version 11.5.3 (15870345). The Fusion vm showed the Apple logo and booted straight into Recovery Mode. |
@mistacabbage Good to know it works with macOS Catalina 10.15.4 and VMware Fusion Professional 11.5.3 ! Dell printer driver for mac el capitan. Best scanners for mac catalina. You might find the development of stains and scratches and their color may even fade with passing time. |