Jump to content

(GUIDE) PACKAGING CHAMELEON


  • Please log in to reply
9 replies to this topic

#1
chris1111

chris1111

    InsanelyMac Legend

  • Donators
  • 981 posts
  • Gender:Male
  • Location:Montreal Canada

This is my simple guide to create chameleon.pkg  ( r2377 )

Using pkgbuild .

 

Copie this folder  on the HOME Directory  

scriptsstagedfiles

 

see the picture  

1108.png

 

this is the contain folder 

home_t10.jpg

 

open the terminal and copie and paste this command  

 

 

pkgbuild --root ./stagedfiles --scripts ./scripts --identifier com.Hackintosh.BootloaderChameleon --version 1 --install-location/ chameleon.pkg
 


 

The result is the creation of Package chameleon  on the HOME directory 

266.png

 

Now ran your package  on the USB drive or everything you whant,

and you have bootable Volume chameleon r2377 with your own package 

PS: NOTE you can put whatever you want in the folder stagedfiles / Extra  :) 

 

clef_u10.jpg

 

 

 

CREDIT  CHAMELEON TEAM and Apple  

 

 

 

Développeurs :

zef, Turbo, dfe, netkas, mackerintel, mercurysquad, fassl, Kabyl, Crazor, Dense, kaitek, iNDi, munky, DHP, JrCs, asereBLN, rekursor, mozodojo, meklort, AnV, valv, AzimutZ, Slice, cosmo1t, cparm, Conti, ErmaC

 

Merci à :

bumby, kalyway, Krazubu, Eddie11c, JaS, fassl, XyZ, SMF, flama, Galaxy, sckevyn, MasterChief, smith@@, blackosx, DHP, nawcom, scorpius, macman, dmazar

 

Packageurs :

kalyway, AzimutZ, blackosx, ErmaC, scrax, JrCs

 

 

 

 

Now its time to customize your Package

Now let’s create a new background.png  image for our installer. The recommended size for the background image is 700×450. The background image I’ll be using for this is example is a simple PNG as shown below. :D  

013.jpg

 

​For this ,just create new folder, and rename images and put your background inside, and rename it  background, delete the (.png )

 

1109.png

 

267.png

 

So we need to create a distribution file and modify it to suit our needs. Fortunately for us, productbuild is able to synthesize a skeleton distribution file for us.

open terminal and type this  

 

productbuild --synthesize --package ./chameleon.pkg distribution.xml

 

and the creation of distribution.xml 

open the xml with TextEdit

347.png

 

This is the exact  Installer_gui_script 

 

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<installer-gui-script minSpecVersion="1">
    <pkg-ref id="com.Hackintosh.chameleonbootloader"/>
    <options customize="never" require-scripts="false"/>
    <choices-outline>
        <line choice="default">
            <line choice="com.Hackintosh.chameleonbootloader"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="com.Hackintosh.chameleonbootloader" visible="false">
        <pkg-ref id="com.Hackintosh.chameleonbootloader"/>
    </choice>
    <pkg-ref id="com.Hackintosh.chameleonbootloader" version="1" onConclusion="none">chameleon.pkg</pkg-ref>
</installer-gui-script>

 

 now just need to change that  , see  the Installer _gui script !  I only add 4 lines  ;)

 

 

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<installer-gui-script minSpecVersion="1">
     <title>chameleon</title> 
    <pkg-ref id="com.Hackintosh.chameleonbootloader"/>
    <options customize="never" allow-external-scripts="no"/>
    <domains enable_anywhere="true"/>
    <background file="background" alignment="center" scaling="tofit"/>
    <choices-outline>
        <line choice="default">
            <line choice="com.Hackintosh.chameleonbootloader"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="com.Hackintosh.chameleonbootloader" visible="false">
        <pkg-ref id="com.Hackintosh.chameleonbootloader"/>
    </choice>
    <pkg-ref id="com.Hackintosh.chameleonbootloader" version="1" onConclusion="none">chameleon.pkg</pkg-ref>

     </installer-gui-script>

 
 
 

Now open terminal again  and type this 

 

productbuild --distribution  distribution.xml --resources ./images --package-path ./chameleon.pkg mychameleon.pkg

 

 the  final result is new chameleon package with your beautiful background :D  :lol:

 

715.jpg

 

Thats it Guys  :) 

 

 

Download file here   ;)  GOOD HACK !

Attached Files



#2
Revolutioner

Revolutioner

    InsanelyMac Protégé

  • Members
  • PipPip
  • 51 posts
  • Gender:Male

Nice and Simple 



#3
Allaп

Allaп

    InsanelyMacaholic

  • Local Moderators
  • 2,559 posts
  • Gender:Male
  • Location:Brazil

Very Good. Congrats  ;)



#4
eʍwe

eʍwe

    InsanelyMac Protégé

  • Members
  • PipPip
  • 55 posts
  • Gender:Male
  • Location:Jongen
  • Interests:Respect to the others

what the meaning this word..?! should i write the path instead?

/$(DESTDIR)



#5
chris1111

chris1111

    InsanelyMac Legend

  • Donators
  • 981 posts
  • Gender:Male
  • Location:Montreal Canada

what the meaning this word..?! should i write the path instead?

 just set  $(DESTDIR %{build root} but the Package is create at the ROOT HOME   so   if you whant delete  this $(DESTDIR) and is  work good to 

 

pkgbuild --root ./stagedfiles --scripts ./scripts --identifier com.Hackintosh.BootloaderChameleon --version 1 --install-location/ chameleon.pkg

 

remove in the command



#6
chris1111

chris1111

    InsanelyMac Legend

  • Donators
  • 981 posts
  • Gender:Male
  • Location:Montreal Canada

I Edit my post today how to  customize the Package  B)



#7
eʍwe

eʍwe

    InsanelyMac Protégé

  • Members
  • PipPip
  • 55 posts
  • Gender:Male
  • Location:Jongen
  • Interests:Respect to the others

thanks for explanation, nice automation guide. :thumbsup_anim:

but.. would you create more feature like clover function like injecting kext, custom edid and etc please?! clover more advanced but painfully to use. :(

thanks in advanced. :D



#8
chris1111

chris1111

    InsanelyMac Legend

  • Donators
  • 981 posts
  • Gender:Male
  • Location:Montreal Canada

thanks for explanation, nice automation guide. :thumbsup_anim:

but.. would you create more feature like clover function like injecting kext, custom edid and etc please?! clover more advanced but painfully to use. :(

thanks in advanced. :D

Hi Koentji today I post new thread PKGBUIL for Clover  ;)  Packaging Installer Clover Mavericks 10.9  Only UEFI  motherboard  :lol:



#9
eʍwe

eʍwe

    InsanelyMac Protégé

  • Members
  • PipPip
  • 55 posts
  • Gender:Male
  • Location:Jongen
  • Interests:Respect to the others

Hi Koentji today I post new thread PKGBUIL for Clover  ;)  Packaging Installer Clover Mavericks 10.9  Only UEFI  motherboard  :lol:

Wow.. sound goods.

can't wait to start to learn anything about clover configs from you.. :thumbsup_anim:  :drool:
anyway.. where's your PKGBUIL post url? :w00t:



#10
chris1111

chris1111

    InsanelyMac Legend

  • Donators
  • 981 posts
  • Gender:Male
  • Location:Montreal Canada

Wow.. sound goods.

can't wait to start to learn anything about clover configs from you.. :thumbsup_anim:  :drool:
anyway.. where's your PKGBUIL post url? :w00t:

No probleme, just follow this thread   :P







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy