Skip to content

Instantly share code, notes, and snippets.

@johnf
Created December 24, 2015 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnf/34e0a19aa52f0c7a2e19 to your computer and use it in GitHub Desktop.
Save johnf/34e0a19aa52f0c7a2e19 to your computer and use it in GitHub Desktop.
Extract Apple Firmware
#!/bin/bash
set -e
orig_dir=$(pwd)
dir=`mktemp -d` && cd $dir
# Grab Partial Zip
git clone git@github.com:planetbeing/partial-zip.git
cd partial-zip
# Compile it
cmake CMakeLists.txt
make
# Grab the exe
./partialzip https://support.apple.com/downloads/DL1720/en_US/BootCamp5.1.5621.zip BootCamp/Drivers/Apple/AppleCamera64.exe AppleCamera64.exe
mv AppleCamera64.exe $orig_dir
rm -rf $dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment