POSIX shell script that builds an OpenCore EFI folder from an OpenCore config.plist
Can also be double-clicked in macOS Finder which will run as
git clone https://github.com/rusty-bits/OC-tool
config.plist file into the
INPUT folder, or copy and edit one of the sample plist files.
cp Docs/Sample.plist INPUT/config.plist
NOTE: If you use the
Clone or download button OC-tool's files will be downloaded, but it won't be a repo and will error out when run since it can't update itself from github
dashshould all work. I myself use
zshwith no problems, even though it's not strictly POSIX compliant.
That's it, nothing more is needed.
OC-tool will make a working EFI folder by getting what it needs from the stable releases on Acidanthera's github or the daily build on Dortania if you so choose.
tr, etc used by OC-tool should already exist on those shells.
Now, if you want OC-tool to build the latest from source you will need additional tools/dependencies, and as far as I know will have to use macOS as well. If there is a good way to run Xcode on Linux let me know ...
mtocneed to be installed and configured to run from the command line. You can build/install these yourself, or you can run the get-deps.sh in the .tool-files folder which uses code from acidanthera to get prebuilt dependencies.
.tool-files/get-deps.shwhile in the
elliptic-shiho for the parse_json.sh gist on github
u/ChrisWayg for pointing out the script for prebuilt mtoc and nasm
u/nyhtml for making me realize the Clone button on github will cause OC-tool to error out since it won't be cloned as a repo. aka the nyhtml bug ;)
I probably forgot a number of people, sorry.