Jump to content

Build_Clover.command, another Script to build standard Clover (or customized)


Micky1979
2,126 posts in this topic

Recommended Posts

You guys have to remember that sourceforge is in america mostly, and using it in the middle of the night like 2am to 6am is probably when they schedule maintenance, so maybe that might be why you experience troubles. I just used it a bunch and have no problems it only takes a few minutes to check out the entire clover repository. But it's also now 10am.

  • Like 1
Link to comment
Share on other sites

15 hours ago, apianti said:

You guys have to remember that sourceforge is in america mostly, and using it in the middle of the night like 2am to 6am is probably when they schedule maintenance, so maybe that might be why you experience troubles. I just used it a bunch and have no problems it only takes a few minutes to check out the entire clover repository. But it's also now 10am.

 

Multiple try is necessary sometimes. You're right: SourceForge is in America. Little joke: east coast, west coast, etc. There is 6 Timezone in USA. What is the choice for europeans people?

Link to comment
Share on other sites

6 hours ago, Matgen84 said:

Multiple try is necessary sometimes. You're right: SourceForge is in America. Little joke: east coast, west coast, etc. There is 6 Timezone in USA. What is the choice for europeans people?

 

The only time zones of real consequence are east and west, central goes off of east and mountain, alaskan, and hawaiian go off of west mostly. Also you're only +5/6 from east if in Europe, being in Asia would be more difficult as it is almost the opposite time. I was just saying that using most websites, since most are american based, maintenance usually falls between 2am and 6am because thats when people aren't usually working here. So there may be slower times, or entire parts down. It may also be that there is no one there immediately to fix a problem like during the day, someone is probably on call.

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

I was off for some days. Maybe this has been explained already somewhere else. Anyway, my problem is that when building the current clover revision with Build_Clover.command, I get the following error:

Processing meta-data .

build.py...
~/src/edk2/Clover/Library/WaveLib/WaveLib.inf(35): error 000E: File/directory not found in workspace
	~/src/edk2/AudioPkg/AudioPkg.de

 

How to solve this issue? Did I miss something? Do we need some modifications of Build_Clover.command?

Link to comment
Share on other sites

6 minutes ago, KGP-iMacPro said:

I was off for some days. Maybe this has been explained already somewhere else. Anyway, my problem is that when building the current clover revision with Build_Clover.command, I get the following error:



Processing meta-data . build.py... ~/src/edk2/Clover/Library/WaveLib/WaveLib.inf(35): error 000E: File/directory not found in workspace ~/src/edk2/AudioPkg/AudioPkg.de

How to solve this issue? Did I miss something? Do we need some modifications of Build_Clover.command?

You could add this line on Build_Clover.command:

73	ThirdPartyList=(
..
78	https://github.com/Goldfish64/AudioPkg
79	)

or..

cd ~/src/edk2
git clone https://github.com/Goldfish64/AudioPkg

Then..

2) update Clover + force edk2 update (no building)

(Restart build script if it' s still failed).

  • Thanks 2
Link to comment
Share on other sites

1 hour ago, Badruzeus said:

You could add this line on Build_Clover.command:


73	ThirdPartyList=(
..
78	https://github.com/Goldfish64/AudioPkg
79	)

or..


cd ~/src/edk2
git clone https://github.com/Goldfish64/AudioPkg

Then..


2) update Clover + force edk2 update (no building)

(Restart build script if it' s still failed).

 

Option 1 just works perfect! Thanks! 

  • Like 2
Link to comment
Share on other sites

Hi, I'm trying to create an install USB stick for my first hackintosh. Following a YouTube video how-to, in the final step, (using Clover_v2.4k_r4813.pkg) I get the warning:

 

This package is incompatible with this version of macOS and may fail to install.

incompatible.thumb.png.449bda3b871ddfb2338f63851baf4a81.png

 

Google-ing about, I found a comment suggesting to compile it myself (Build the package yourself from scratch. Look on insanelymac for the clover build command script.
)

 

. I never compiled something before. Is this topic about it?

Link to comment
Share on other sites

1 hour ago, laptopleon said:

Hi, I'm trying to create an install USB stick for my first hackintosh. Following a YouTube video how-to, in the final step, (using Clover_v2.4k_r4813.pkg) I get the warning:

 


This package is incompatible with this version of macOS and may fail to install.

incompatible.thumb.png.449bda3b871ddfb2338f63851baf4a81.png

 

Google-ing about, I found a comment suggesting to compile it myself (Build the package yourself from scratch. Look on insanelymac for the clover build command script.
)

 

. I never compiled something before. Is this topic about it?

 

Clover r4813 is a release version. Compile yourself isn't necessary. 

 

This issue is probably about the SIP. I referred to this https://www.imore.com/how-turn-system-integrity-protection-macos to disable the SIP and it installed without that prompt.

  • Like 1
Link to comment
Share on other sites

5 hours ago, laptopleon said:

Hi, I'm trying to create an install USB stick for my first hackintosh. Following a YouTube video how-to, in the final step, (using Clover_v2.4k_r4813.pkg) I get the warning:

 


This package is incompatible with this version of macOS and may fail to install.

incompatible.thumb.png.449bda3b871ddfb2338f63851baf4a81.png

 

Google-ing about, I found a comment suggesting to compile it myself (Build the package yourself from scratch. Look on insanelymac for the clover build command script.
)

 

. I never compiled something before. Is this topic about it?

Press "Install Anyway"

Link to comment
Share on other sites

  • 2 weeks later...
9 hours ago, khoahoc0508 said:

Not problem, but how bring back logo to package after build?

Thanks!

 

No problem here: building Clover with logo. You can bring back manually: icon.zip is in src/edk2/Clover/CloverPackage/Package. Unzip, copy/paste in Get Info as usual.

Link to comment
Share on other sites

10 hours ago, khoahoc0508 said:

No way set logo as default when build pkg file?

 

Default logo depend from Clover source files, Buildpkg, I think, not the script. Test from new ~/src, If you can

Link to comment
Share on other sites

there is process in the packaging to copy a resource fork to the package.

roughly there is a zip with an icon that is supposed to have a resource fork that is copied and applied.

the initial unzip leaves Icon.icns such a thing to copy

### /Applications/Xcode.app/Contents/Developer/usr/bin/DeRez - SysError -39 during open of resource file "/Extra/Clover_Install/CloverGrowerPro/edk2/Clover/CloverPackage/sym/package/Icons/Icon.icns".

  • Thanks 1
Link to comment
Share on other sites

18 minutes ago, tluck said:

there is process in the packaging to copy a resource fork to the package.

roughly there is a zip with an icon that is supposed to have a resource fork that is copied and applied.

the initial unzip leaves Icon.icns such a thing to copy

### /Applications/Xcode.app/Contents/Developer/usr/bin/DeRez - SysError -39 during open of resource file "/Extra/Clover_Install/CloverGrowerPro/edk2/Clover/CloverPackage/sym/package/Icons/Icon.icns".

thanks! I'll look for a fix

52 minutes ago, D-an-W said:

Where would I find it please?

..from the Terminal while building Clover's package

Link to comment
Share on other sites

Sorry, I was looking for an actual .log file!

 

As mentioned by tluck I see this (This was the same after starting with a fresh /src folder also)...

===================== RC Scripts =======================
	[BUILD] rc.scripts.on.target
	[BUILD] rc.scripts.on.all.volumes
	[BUILD] rc.scripts.core
================= Optional RC Scripts ==================
	[BUILD] disable_sleep_proxy_client
==================== Clover Prefpane ===================
	[BUILD] CloverPrefpane
================= Post =================
	[BUILD] Post
### DeRez - The resource fork of "/Users/dan/src/edk2/Clover/CloverPackage/sym/package/Icons/Icon.icns" is empty and uninitialized.

 --------------------------
 Building process complete!
 --------------------------

 

  • Thanks 1
Link to comment
Share on other sites

look in CloverPackage/package/buildpkg.sh

 

    ditto -xk "${PKGROOT}/Icon.zip" "${PKG_BUILD_DIR}/Icons/"

    DeRez -only icns "${PKG_BUILD_DIR}/Icons/Icon.icns" > "${PKG_BUILD_DIR}/Icons/tempicns.rsrc"

    Rez -append "${PKG_BUILD_DIR}/Icons/tempicns.rsrc" -o "${distributionFilePath}"

    SetFile -a C "${distributionFilePath}"

    rm -rf "${PKG_BUILD_DIR}/Icons"

Edited by tluck
  • Like 1
Link to comment
Share on other sites

18 hours ago, tluck said:

look in CloverPackage/package/buildpkg.sh

 

    ditto -xk "${PKGROOT}/Icon.zip" "${PKG_BUILD_DIR}/Icons/"

    DeRez -only icns "${PKG_BUILD_DIR}/Icons/Icon.icns" > "${PKG_BUILD_DIR}/Icons/tempicns.rsrc"

    Rez -append "${PKG_BUILD_DIR}/Icons/tempicns.rsrc" -o "${distributionFilePath}"

    SetFile -a C "${distributionFilePath}"

    rm -rf "${PKG_BUILD_DIR}/Icons"

Hi, when I created the build script for the HWSensor project I was looking for a way to set the image for the package but after saw the above lines in Clover last year...I decide to make a tiny command line called seticon (source code here). Attached a prebuilt one, usage:

 

seticon /path/to/any/image/supported/by/macOS/anyImage.png /path/to/any/file/or/directory

 

It just require an uncompressed image unlike clover is actually doing...using just one line. Please tell me if works as expected as I hope.

seticon.zip

Edited by vector sigma
  • Like 3
Link to comment
Share on other sites

×
×
  • Create New...