Giter Site home page Giter Site logo

arslan2012 / lazy-hackintosh-image-generator Goto Github PK

View Code? Open in Web Editor NEW
183.0 15.0 40.0 84.47 MB

This automatical app makes Hackintosh installer from original Macintosh Installer app/disk image.

License: GNU Affero General Public License v3.0

Swift 76.37% GLSL 2.53% CSS 10.61% Shell 7.74% Ruby 0.56% Rich Text Format 2.19%
hackintosh swift

lazy-hackintosh-image-generator's Introduction

Installer patching is deprecated since macOS 11, please use OpenCore.

This should only be used with macOS 10.X

Lazy Hackintosh Image Generator

Swift 5

What is this?

This automatical app makes Hackintosh installer from original Macintosh Installer app/disk image.

Why do I need this?

  • If you are on a computer that does not support UEFI.
  • If you have hardwares on you computer that causes original installation image kernel panic.
  • If you are having trouble continuing installation after restart.
  • If you are just too lazy to read the tutorial and install the original.

you'll need this app to alter the original installation image.

How to use

Just drag the app/dmg file onto the image icon, click start and enjoy.

If you use Chameleon Bootloader, you can also drop your Chameleon Extra folder onto the app. App then will make this a Chameleon bootable image.

Shut up and gimmi the app

Just download the LazyHackintoshGenerator.app.zip. It will keep updating to the latest version.

Also, you may use this script for downloading updates.

You're a dev?

my code is a mess, feel free to report an issue, or open up a pull request.

Build

This project relys on CocoaPods to manage dependencies, after you have installed it on your system, run pod install to download dependencies of the project.

Then set the build target to LazyHackintoshGenerator and build.

Should the build succeed it will likely generate a defect app. You'll need to use SMJobBlessUtil.py to check if the app had been built correctly.

Use it like this: ./SMJobBlessUtil.py check /path/to/LazyHackintoshGenerator.app

and correct anything report by it in info.plist and LazyGenHelper-Info.plist until it doesn't show any output.

lazy-hackintosh-image-generator's People

Contributors

arslan2012 avatar mengwei1005 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lazy-hackintosh-image-generator's Issues

mac10.12.2失败

=======Workflow Starting======
/Applications/Install macOS Sierra.app,7.15,true,false,false,true,false,,,,

Some typos & my own ideas

Well, there is something wrong with your README.md which is unnecessary. Feel free to close it.

  1. "Just drag the Install app, or Install app image, or Install ESD image onto the top, hit start and enjoy."
    I suggest you use "click".
    2." If you use Chameleon Bootloader, you can drop your Chameleon Extra folder onto the /Extra lable to make this an Chameleon bootabale image."
    Should be "a" & "bootable". :)
    3."the precompiled binary could be downloaded at the realease page."
    Should be "release".
  2. "This is an simple app that automaticly modifies the OS X Installation app/disk image so that it could be used as a Hackintosh image and install OS X on non-apple computers."
    Should be "automatically".
  3. "and I'm pretty confident it's convertable."
    Should be "convertible".
  4. "What I'm expecting is that turning this into a shell script would fix the authoriation problem."
    "Is" should be deleted.
  5. As I said @pcbeta, could you upload a precompiled version of the latest release on your main code so that I can merge yours & mine in a script that users can get the latest version directly? Thanks.

And unfortunately, tomorrow I will go back to school, maybe I can reply on next weekends... Oops.

// 英文渣的要死最近 凑合看吧。。

[BUG]10.13.6和10.14下没反应

把 install xxx.app或者 .dmg 拖放成功后,drop kernel 或者 generator cdr不管勾选与否,点击start都是无反应,不知道是不是刚好我用的都是懒人版的系统。

Does this work Clover?

And if so, whats the correct procedure to install it? Should I put anything on the image generator?

生成CDR提示 asr进程超时,报错,而不勾选的话dmg生成不报错,无法安装

现系统为10.12,在生成时,勾选同时生成CDR选项 会出现 asr进程超时 报错,而不勾选的话dmg生成不报错,转成CDR安装时 会进度条走到一多半时候回出现禁止符号 卡在这

=======Workflow Starting=======
==========22:8:57==========
/usr/bin/hdiutil detach /tmp/com.pcbeta.lazy/Lazy Installer.dmg -force,progress:0.0

hdiutil: detach failed - 无此文件或目录

==========22:8:57==========
/bin/rm -rf /tmp/com.pcbeta.lazy,progress:0.0

==========22:8:57==========
/bin/mkdir /tmp/com.pcbeta.lazy,progress:3.0

========cleaning done=======
==========22:8:58==========
/usr/bin/hdiutil attach /Users/x/Documents/OS X Install ESD.dmg -noverify -nobrowse -quiet -mountpoint /tmp/com.pcbeta.lazy/OriginMount,progress:2.0

=======mounting done=======
==========22:10:15==========
/usr/bin/hdiutil create -size 7.15g -layout SPUD -ov -fs HFS+J -volname OS X Lazy Installer /tmp/com.pcbeta.lazy/Lazy Installer.dmg,progress:22.0
created: /tmp/com.pcbeta.lazy/Lazy Installer.dmg

==========22:10:16==========
/usr/bin/hdiutil attach /tmp/com.pcbeta.lazy/Lazy Installer.dmg -noverify -nobrowse -quiet -mountpoint /tmp/com.pcbeta.lazy/LazyMount,progress:2.0

=======creating done=======
==========22:11:5==========
sudo /usr/sbin/asr restore --source /tmp/com.pcbeta.lazy/OriginMount/BaseSystem.dmg --target /tmp/com.pcbeta.lazy/LazyMount --erase --format HFS+ --noprompt --noverify
==========22:11:5==========
/usr/bin/hdiutil detach /Volumes/OS X Base System -force,progress:0.0
"disk2" unmounted.
"disk2" ejected.

==========22:11:6==========
/usr/bin/hdiutil attach /tmp/com.pcbeta.lazy/Lazy Installer.dmg -noverify -nobrowse -quiet -mountpoint /tmp/com.pcbeta.lazy/LazyMount,progress:0.0

==========22:11:6==========
/bin/ls -l /tmp/com.pcbeta.lazy/LazyMount/System/Library/CoreServices/SystemVersion.plist,progress:0.0
-r--r--r-- 1 x staff 477 Sep 14 08:03 /tmp/com.pcbeta.lazy/LazyMount/System/Library/CoreServices/SystemVersion.plist

Detected System Version:10.12 16A323

==========22:11:7==========
sudo /usr/sbin/diskutil rename OS X Base System Sierra Custom Installer
==========22:11:7==========
/bin/cp /tmp/com.pcbeta.lazy/OriginMount/BaseSystem.chunklist /tmp/com.pcbeta.lazy/LazyMount,progress:2.0

==========22:11:22==========
/bin/cp /tmp/com.pcbeta.lazy/OriginMount/BaseSystem.dmg /tmp/com.pcbeta.lazy/LazyMount,progress:2.0

==========22:11:22==========
/bin/cp /tmp/com.pcbeta.lazy/OriginMount/AppleDiagnostics.chunklist /tmp/com.pcbeta.lazy/LazyMount,progress:2.0

==========22:11:22==========
/bin/cp /tmp/com.pcbeta.lazy/OriginMount/AppleDiagnostics.dmg /tmp/com.pcbeta.lazy/LazyMount,progress:2.0

==========22:11:22==========
/bin/rm -rf /tmp/com.pcbeta.lazy/LazyMount/System/Installation/Packages,progress:2.0

==========22:14:15==========
sudo /bin/cp -R /tmp/com.pcbeta.lazy/OriginMount/Packages /tmp/com.pcbeta.lazy/LazyMount/System/Installation
==========22:14:20==========
/bin/mkdir /tmp/com.pcbeta.lazy/LazyMount/System/Library/Kernels,progress:1.0

========copying done=======
==========22:14:20==========
/bin/sh -c perl -pi -e 's|\x48\x8B\x78\x28\x48\x85\xFF\x0F\x84\x96\x00\x00\x00\x48|\x48\x8B\x78\x28\x48\x85\xFF\xE9\x97\x00\x00\x00\x90\x48|g' /tmp/com.pcbeta.lazy/LazyMount/System/Library/PrivateFrameworks/OSInstaller.framework/Versions/A/OSInstaller,progress:1.0

==========22:14:21==========
sudo /usr/bin/codesign -f -s - /tmp/com.pcbeta.lazy/LazyMount/System/Library/PrivateFrameworks/OSInstaller.framework/Versions/A/OSInstaller
==========22:14:21==========
/bin/cp -R 拖入Extra文件夹(可选) /tmp/com.pcbeta.lazy/LazyMount/,progress:2.0

cp: 拖入Extra文件夹(可选): No such file or directory

=======patching done=======
==========22:14:21==========
/usr/bin/chflags nohidden /tmp/com.pcbeta.lazy/LazyMount,progress:0.0

==========22:14:21==========
/usr/bin/hdiutil detach /tmp/com.pcbeta.lazy/OriginMount -force,progress:2.0
"disk1" unmounted.
"disk1" ejected.

==========22:14:22==========
/usr/bin/hdiutil detach /tmp/com.pcbeta.lazy/OriginMount -force,progress:2.0

hdiutil: detach failed - 无此文件或目录

==========22:14:22==========
/usr/bin/hdiutil detach /tmp/com.pcbeta.lazy/LazyMount -force,progress:2.0
"disk2" unmounted.
"disk2" ejected.

==========22:14:22==========
/bin/mv /tmp/com.pcbeta.lazy/Lazy Installer.dmg /Users/x/Desktop/Sierra Custom Installer.dmg,progress:3.0

==========22:14:22==========
/bin/rm -rf /tmp/com.pcbeta.lazy,progress:0.0

=======Workflow Starting=======
==========22:24:9==========
/bin/rm -rf /tmp/com.pcbeta.lazy,progress:0.0

==========22:24:9==========
/bin/mkdir /tmp/com.pcbeta.lazy,progress:3.0

========cleaning done=======
==========22:24:10==========
/usr/bin/hdiutil attach /Users/x/Documents/OS X Install ESD.dmg -noverify -nobrowse -quiet -mountpoint /tmp/com.pcbeta.lazy/OriginMount,progress:2.0

=======mounting done=======
==========22:26:34==========
/usr/bin/hdiutil create -size 7.15g -layout SPUD -ov -fs HFS+J -volname OS X Lazy Installer /tmp/com.pcbeta.lazy/Lazy Installer.dmg,progress:22.0
created: /tmp/com.pcbeta.lazy/Lazy Installer.dmg

==========22:26:35==========
/usr/bin/hdiutil attach /tmp/com.pcbeta.lazy/Lazy Installer.dmg -noverify -nobrowse -quiet -mountpoint /tmp/com.pcbeta.lazy/LazyMount,progress:2.0

=======creating done=======
==========22:28:20==========
sudo /usr/sbin/asr restore --source /tmp/com.pcbeta.lazy/OriginMount/BaseSystem.dmg --target /tmp/com.pcbeta.lazy/LazyMount --erase --format HFS+ --noprompt --noverify
==========22:28:21==========
/usr/bin/hdiutil detach /Volumes/OS X Base System -force,progress:0.0
"disk1" unmounted.
"disk1" ejected.

==========22:28:24==========
/usr/bin/hdiutil attach /tmp/com.pcbeta.lazy/Lazy Installer.dmg -noverify -nobrowse -quiet -mountpoint /tmp/com.pcbeta.lazy/LazyMount,progress:0.0

==========22:28:24==========
/bin/ls -l /tmp/com.pcbeta.lazy/LazyMount/System/Library/CoreServices/SystemVersion.plist,progress:0.0
-r--r--r-- 1 x staff 477 Sep 14 08:03 /tmp/com.pcbeta.lazy/LazyMount/System/Library/CoreServices/SystemVersion.plist

Detected System Version:10.12 16A323

==========22:28:25==========
sudo /usr/sbin/diskutil rename OS X Base System Sierra Custom Installer
==========22:28:25==========
/bin/cp /tmp/com.pcbeta.lazy/OriginMount/BaseSystem.chunklist /tmp/com.pcbeta.lazy/LazyMount,progress:2.0

==========22:28:52==========
/bin/cp /tmp/com.pcbeta.lazy/OriginMount/BaseSystem.dmg /tmp/com.pcbeta.lazy/LazyMount,progress:2.0

==========22:28:52==========
/bin/cp /tmp/com.pcbeta.lazy/OriginMount/AppleDiagnostics.chunklist /tmp/com.pcbeta.lazy/LazyMount,progress:2.0

==========22:28:53==========
/bin/cp /tmp/com.pcbeta.lazy/OriginMount/AppleDiagnostics.dmg /tmp/com.pcbeta.lazy/LazyMount,progress:2.0

==========22:28:53==========
/bin/rm -rf /tmp/com.pcbeta.lazy/LazyMount/System/Installation/Packages,progress:2.0

==========22:32:40==========
sudo /bin/cp -R /tmp/com.pcbeta.lazy/OriginMount/Packages /tmp/com.pcbeta.lazy/LazyMount/System/Installation
==========22:32:40==========
/bin/mkdir /tmp/com.pcbeta.lazy/LazyMount/System/Library/Kernels,progress:1.0

========copying done=======
==========22:32:40==========
/bin/sh -c perl -pi -e 's|\x48\x8B\x78\x28\x48\x85\xFF\x0F\x84\x96\x00\x00\x00\x48|\x48\x8B\x78\x28\x48\x85\xFF\xE9\x97\x00\x00\x00\x90\x48|g' /tmp/com.pcbeta.lazy/LazyMount/System/Library/PrivateFrameworks/OSInstaller.framework/Versions/A/OSInstaller,progress:1.0

==========22:32:41==========
sudo /usr/bin/codesign -f -s - /tmp/com.pcbeta.lazy/LazyMount/System/Library/PrivateFrameworks/OSInstaller.framework/Versions/A/OSInstaller
==========22:32:42==========
/Users/x/LazyHackintoshGenerator.app/Contents/Resources/lzvn -d /tmp/com.pcbeta.lazy/LazyMount/System/Library/PrelinkedKernels/prelinkedkernel kernel,progress:0.0
Filesize: 22841074 bytes
Checking adler32 ... OK (0x3bf14f38)
Extracting kernel ...
11419968 bytes written

Done.

==========22:32:42==========
/bin/cp /tmp/com.pcbeta.lazy/kernel /tmp/com.pcbeta.lazy/LazyMount/System/Library/Kernels,progress:1.0

==========22:32:42==========
/bin/chmod +x /tmp/com.pcbeta.lazy/LazyMount/System/Library/Kernels/kernel,progress:0.0

==========22:32:42==========
/bin/cp -R 拖入Extra文件夹(可选) /tmp/com.pcbeta.lazy/LazyMount/,progress:2.0

cp: 拖入Extra文件夹(可选): No such file or directory

=======patching done=======
==========22:32:42==========
/usr/bin/chflags nohidden /tmp/com.pcbeta.lazy/LazyMount,progress:0.0

==========22:32:42==========
/usr/bin/hdiutil detach /tmp/com.pcbeta.lazy/OriginMount -force,progress:0.0
"disk2" unmounted.
"disk2" ejected.

==========22:32:42==========
/usr/bin/hdiutil detach /tmp/com.pcbeta.lazy/OriginMount -force,progress:1.0

hdiutil: detach failed - 无此文件或目录

==========22:32:43==========
/usr/bin/hdiutil detach /tmp/com.pcbeta.lazy/LazyMount -force,progress:1.0
"disk1" unmounted.
"disk1" ejected.

等待asr命令执行完毕

vmware上运行10.12.5,宿主是win10 64bit。升级10.12.5之前都可以正确制作镜像。
当前是使用从appstore下载的10.12.5升级文件,制作.cdr。
等待asr命令失败,让我检查cpu占用率。打开活动监视器,未察觉到大的资源占用,也未发现有asr字样的进程。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.