Author Topic: Revisit Chameleon's package builder  (Read 144291 times)

0 Members and 3 Guests are viewing this topic.

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: Revisit Chameleon's package builder
« Reply #165 on: December 28, 2010, 04:09:18 PM »
Hi Fabio

Interesting idea and it definitely helps to keep things simpler. I like it :)
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

ErmaC

  • Resident
  • Posts: 134
Re: Revisit Chameleon's package builder
« Reply #166 on: December 28, 2010, 09:23:11 PM »
Thanks Blackosx.

About the dmg posted @IM:

- The pkg is a slim version of Blackosx's script (last builded from script not packagemaker)
- I just create some icon "suitable" using the same metot too add on the fly (similar method used for the pkg)

Would be a useful add an "EULA" or similar?
here all the URL I read for "arrange" a script for automate the building...
Code: [Select]
http://www.rkuntz.org/pmwiki.php?n=Code.AntDiskImage
http://www.tuttologia.com/macp2p/showthread.php?t=9479
http://wiki.services.openoffice.org/wiki/MacOSX:_Arrange_icons_in_a_dmg
http://svn.apache.org/repos/asf/directory/studio/trunk/tools/Mac%20OS%20X%20DMG/createDMG.sh
http://www.macdisk.com/ds_storeen.php
http://hints.macworld.com/article.php?story=20020311215452999
http://endrift.com/blog/2010/06/14/dmg-files-volume-icons-cli/
http://stackoverflow.com/questions/96882/how-do-i-create-a-nice-looking-dmg-for-mac-os-x-using-command-line-tools
http://www.yoursway.com/free/#createdmg
http://www.tutorial9.net/tutorials/photoshop-tutorials/photoshop-tutorial-design-the-mac-os-x-leopard-folder/
http://marketingtypo.com/tag/icon/
http://qwan.org/2007/05/22/using-xcode-to-build-a-disk-image-and-upload-a-web-site/
http://drnicwilliams.com/2009/02/03/choctop-packaging-and-deployment-of-cocoa-applications/
http://www.brightpebbles.org/articles/disk-images-on-the-fly-in-xcode
http://www.mackb.com/Uwe/Forum.aspx/mac-tools/404/XCode-adding-a-task-to-the-build-phase
http://cocoawithlove.com/2010/11/deployment-script-for-generic-cocoa-mac.html
http://www.omnigroup.com/mailman/archive/macosx-dev/2002-April.txt
http://mac101.net/content/how-to/how-to-create-dmg-art-for-fancy-application-installations/
http://www.tribler.org/trac/wiki/MacDiskimage
http://goodliffe.blogspot.com/2010/08/eulogise-adding-eula-to-dmg.html

there is different tecnique but the process is always the same...

I need help to compile a old command called OpeUp (I'm very noob with language program)
I get this error (I'm sure is a stupid error)...
Code: [Select]
Fabios-Mac-Pro:openUp root# make
cc    -c -o openUp.o openUp.c
openUp.c: In function ‘main’:
openUp.c:68: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 2 has type ‘u_int32_t’
cc   openUp.o   -o openUp
Fabios-Mac-Pro:openUp root#
This "command" is useful to auto-popup a dmg when is mounted...


Fabio
« Last Edit: December 28, 2010, 09:31:29 PM by iFabio »
P6T Deluxe v1 i7 940 Quadro Fx 5600
P6T SE i7 920 GeForce GT 240

rocksteady

  • Global Moderator
  • Posts: 233
  • Root Down
Re: Revisit Chameleon's package builder
« Reply #167 on: January 04, 2011, 02:34:56 AM »
The icons look ab-fab Mr. iFab :)

Let us know how it all comes up and thanks for your efforts. The guys are right though, getting a decent installer out of the pipeline requires crazy, meticulous testing. We should keep this one on stress-test mode for quite some time.
Stop bitching, start coding or documenting or both..

P5Q-EM : Q6600 : 8GB RAM : 8800GT : SATA Drives

NetBoot

  • Observer
  • Posts: 24
Re: Revisit Chameleon's package builder
« Reply #168 on: January 04, 2011, 03:27:52 AM »
iFabio

Can you add the Kext for Legacy Support for Intel ICHX without AHCI

I have a Intel ICH6 and I'm using IOATAFamily.kext

Thanks,

Net...

scrax

  • Member
  • Posts: 61
Re: Revisit Chameleon's package builder
« Reply #169 on: January 04, 2011, 05:52:31 AM »
Hi NetBoot, can you add a link to the kext you are using?

NetBoot

  • Observer
  • Posts: 24
Re: Revisit Chameleon's package builder
« Reply #170 on: January 04, 2011, 07:45:19 AM »
I'm using this one. I'm assuming it's the latest

http://osx86.sojugarden.com/files/Extensions/IOATAFamily.kext.zip

Net....

What would really be useful is if you can also add gptsync
« Last Edit: January 04, 2011, 07:49:22 AM by NetBoot »

ErmaC

  • Resident
  • Posts: 134
Re: Revisit Chameleon's package builder
« Reply #171 on: January 04, 2011, 06:34:41 PM »
Hi guys...

Maybe for the next dmg I can add the "kext" folder (same present into the official version)...

But I need time to do this change into the "dirty" dmg script...

Before this I wont commit a "stable" dmg script... w/o too much crazy things...
(the .DS_Store file give me crazy...)

Maybe this week-end... (depend... my free time)

Fabio

Request... Into the last dmg is present a background... maybe guys can make some amazing background???
mine is made w/o too much tecnique (I'm very bud with photosh*p)... Blackosx?
« Last Edit: January 04, 2011, 06:36:22 PM by iFabio »
P6T Deluxe v1 i7 940 Quadro Fx 5600
P6T SE i7 920 GeForce GT 240

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: Revisit Chameleon's package builder
« Reply #172 on: January 06, 2011, 01:03:25 PM »
Hi iFabio

I might be able to come up with a background for your Window.
Have you got a final window size and folder placement positions which I can work with?
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

ErmaC

  • Resident
  • Posts: 134
Re: Revisit Chameleon's package builder
« Reply #173 on: January 09, 2011, 03:18:12 PM »
Hi iFabio

I might be able to come up with a background for your Window.
Have you got a final window size and folder placement positions which I can work with?
Hi Blackosx...
sorry for the big delay...

Is not a big problem the dimension.. 800x600 is ok
Fabio
P6T Deluxe v1 i7 940 Quadro Fx 5600
P6T SE i7 920 GeForce GT 240

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: Revisit Chameleon's package builder
« Reply #174 on: January 10, 2011, 12:05:59 AM »
Hi iFabio

Well done with your continued work on this :)
Looking at your latest package: Unzipping your Chameleon.699.zip from IM shows me the following window:


How about a layout of something like this? (excuse the quick mock-up)


The background can be made to look for professional in time but the first thing to finalise will be the icon positions. If they can be set then the background can work with them. I measure the current window at 549x413 pixels.
« Last Edit: January 10, 2011, 12:10:27 AM by Blackosx »
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

ErmaC

  • Resident
  • Posts: 134
Re: Revisit Chameleon's package builder
« Reply #175 on: May 18, 2011, 06:25:35 PM »
Hi all.
After 4 mouth... I try to restart with this things.

Fabio
P6T Deluxe v1 i7 940 Quadro Fx 5600
P6T SE i7 920 GeForce GT 240

ErmaC

  • Resident
  • Posts: 134
Re: Revisit Chameleon's package builder
« Reply #176 on: May 19, 2011, 03:46:17 PM »
Some little progress commit 272

- Revised the post Install script, the temporary folder will correctly delete after the install process.

know issue:
- no Extensions.mkext will re/build after install a kext into E/E.
- the "cosmetics" Icon generate an error  during the make process, but the package are well maked

Fabio
P6T Deluxe v1 i7 940 Quadro Fx 5600
P6T SE i7 920 GeForce GT 240

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: Revisit Chameleon's package builder
« Reply #177 on: May 19, 2011, 04:18:06 PM »
Good to see you've revitalised this topic Fabio :)

I left the project well alone after a user's bad experience, though I did enjoy the learning and working on it. Maybe if I get some time I can look at this again.

Check the original Chameleon script in trunk/package/Scripts/Post/postinstall for a line to make Extensions.mkext, and didn't you have your custom icon working before? if so, what's changed?
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

ErmaC

  • Resident
  • Posts: 134
Re: Revisit Chameleon's package builder
« Reply #178 on: May 19, 2011, 11:24:30 PM »
didn't you have your custom icon working before? if so, what's changed?

I Blackosx

As I say in PM.
there is a problem with the Icon resource fork
This is the message:
Quote
...//...
Building FakeSMC package
113 blocks
Building IOAHCIBlockStorageInjector package
4 blocks
Building IOATAFamily package
1131 blocks
Building JMicronATAInjector package
5 blocks
3 blocks
1 block
### DeRez - The resource fork of "/project/chameleonApplications/branches/iFabio/Chameleon/package/Icon.icns" is empty and uninitialized.
sh-3.2#

Now the pkg will be create w/o problem...
So what change?

4 months ago the script and the icon (all the commit) was created on one of my old OSX installation...
few week ago I reinstall a new one (Snow Server 10.6.7) also install xcode-3.2.6...
no problem with this, the normal make and compiling just work fine.
Now I saw there is that "problem" with resource fork... why?
On my working local copy of the commit (exactly the same I commit on the svn) the script and the icon work correctly
but if I download the commit (Is the same code!!!) look like the Icon.icns lost this data, and the DeRez/Rez can't manage it!

So probably there is a workaround: I see here there is a "solution?" http://xahlee.org/UnixResource_dir/macosx.html
- Compress the Icon.icns (with ditto).
- Into the buildpkg script add the "uncompress" command.
- and probably we can continue with the script process.

I haven't see this problem before...

---

I also (when the pkg are ready to use, and integrate with the main chameleon), add the dmg creation process...
similar as what I post @IM
But this need more time and I prefer discard this for the moment.

sorry all for my poor English.

Fabio
« Last Edit: May 20, 2011, 12:49:59 AM by iFabio »
P6T Deluxe v1 i7 940 Quadro Fx 5600
P6T SE i7 920 GeForce GT 240

ErmaC

  • Resident
  • Posts: 134
Re: Revisit Chameleon's package builder
« Reply #179 on: May 20, 2011, 12:33:44 AM »
"solved" ;)

I do some deep test and I commit this little change...
commit 273

into buildpkg:
Quote
#   Here is the place for assign a Icon to the pkg
#   command use to generate the file:
#   ditto -c -k --sequesterRsrc --keepParent Icon.icns Icon.zip
ditto -xk "${pkgroot}/Icon.zip" "${pkgroot}/"
DeRez -only icns "${pkgroot}/Icon/Icon.icns" > tempicns.rsrc
Rez -append tempicns.rsrc -o "${1%/*}/${packagename// /}-${version}-INSTALLER-r${revision}.pkg"
SetFile -a C "${1%/*}/${packagename// /}-${version}-INSTALLER-r${revision}.pkg"
rm -f tempicns.rsrc
rm -rf "${pkgroot}/Icon" # Clean the generated folder from "ditto"
# End

Fabio
« Last Edit: May 20, 2011, 12:48:16 AM by iFabio »
P6T Deluxe v1 i7 940 Quadro Fx 5600
P6T SE i7 920 GeForce GT 240