No subject


Wed Apr 10 07:51:04 EDT 2013


> My quick google from earlier seemed to indicate that there can be a much more
> complex process using additional tools if you're creating a component
> installer.[1] While I'd be fine calling this generator ProductBuild I'm not
> sure that would actually be an accurate name. If someone who has more
> complex packaging requirements was willing to work with me, I would be
> willing to make time to add support for additional options and features.

Even if there isn't much help, it would be nice to at least start off well and go in the right direction. I'm not convinced that an implementation based on the Bundle generator way is the right start. 

> > So, it appears to be a replacement for PackageMaker, so I would suggest
> > that
> 
> > you not inherit the Bundle generator behavior.
> 
> Given that, for the app store, I need the .app Bundle to be created the only
> thing I could see working, off the top of my head, would be to move the .app
> creation from the Bundle class to the DragNDrop class.

Maybe I wasn't clear before. CMake can already do .app creation. I don't want to see it moved into the DragNDrop generator. 
See the list of target properties: 
http://www.cmake.org/cmake/help/v2.8.10/cmake.html#section_PropertiesonTargets 
There is MACOSX_BUNDLE, MACOSX_BUNDLE_INFO_PLIST for example. 

Why do we need to create a .app with CPack? 
If a CPack generator does it, you automatically have a generator limited to certain use cases, which excludes cases such as command line tools, multiple .apps, directory structures, postflight scripts, etc... 

> [1]
> http://stackoverflow.com/questions/11487596/making-os-x-installer-packages-like-a-pro-xcode4-developer-id-mountain-lion-re

Clint 

------=_Part_1390531_882280081.1365801133860
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"font-family: times new roman, new york, times, se=
rif; font-size: 12pt; color: #000000"><div><br></div><div>Bringing this thr=
ead back to the cmake list...</div><div><br></div><hr id=3D"zwchr"><blockqu=
ote style=3D"border-left:2px solid #1010FF;margin-left:5px;padding-left:5px=
;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-=
family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style=3D"border=
-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000;=
 font-weight: normal; font-style: normal; text-decoration: none; font-famil=
y: Helvetica,Arial,sans-serif; font-size: 12pt;"><div dir=3D"ltr">Hi Clint,=
<div><br><div class=3D"gmail_extra"><div class=3D"gmail_quote">On Fri, Apr =
12, 2013 at 9:28 AM, Clinton Stimpson <span dir=3D"ltr">&lt;<a href=3D"mail=
to:clinton at elemtech.com" target=3D"_blank" data-mce-href=3D"mailto:clinton@=
elemtech.com">clinton at elemtech.com</a>&gt;</span>wrote:<blockquote class=3D=
"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;borde=
r-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" dat=
a-mce-style=3D"margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-le=
ft-color: #cccccc; border-left-style: solid; padding-left: 1ex;">Ok, I now =
see what is special about it.<br> It uses "productbuild" to generates a .pk=
g (which is then put inside a .dmg),<br></blockquote><div><br></div><div>Th=
e pkg file is not put inside a dmg image, it's uploaded to the App Store vi=
a a piece of software called "Application Loader".</div><div style=3D"" dat=
a-mce-style=3D"">Basically you have a MySoftware.app Bundle inside a .pkg f=
ile.</div></div></div></div></div></blockquote><div>Oh. &nbsp;So no .dmg. &=
nbsp;That is interesting -- oh wait, its creating a "flat" .pkg file, right=
?</div><div>The PackageMaker generator also creates .pkg files, but they ar=
e not flat. &nbsp;They are directories that can be navigated into much like=
 a .app.</div><div><br></div><div>The man page for productbuild says it als=
o makes a product archive for the OS X Installer. &nbsp;Last time I looked =
at PackageMaker a few months back (while trying to fix postflight script su=
pport in component mode), I wondered about modifying it to use productbuild=
 internally after realizing that the packagemaker tool was deprecated. &nbs=
p;But after having this discussion, I realize its good to have a new genera=
tor instead of modifying the PackageMaker generator.</div><div><br></div><b=
lockquote style=3D"border-left:2px solid #1010FF;margin-left:5px;padding-le=
ft:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none=
;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style=3D"=
border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color:=
 #000; font-weight: normal; font-style: normal; text-decoration: none; font=
-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div dir=3D"ltr"><di=
v><div class=3D"gmail_extra"><div class=3D"gmail_quote"><div>I'll admit my =
understanding of the App Store is somewhat limited, I've learned what I nee=
d in order to submit my application. So I'm sure there are gaps in my knowl=
edge.</div><div><br></div><blockquote class=3D"gmail_quote" style=3D"margin=
:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204)=
;border-left-style:solid;padding-left:1ex" data-mce-style=3D"margin: 0px 0p=
x 0px 0.8ex; border-left-width: 1px; border-left-color: #cccccc; border-lef=
t-style: solid; padding-left: 1ex;">I haven't been keeping up with all the<=
br> Mac updates (nor am I really a Mac developer), but isn't productbuild t=
he new<br> replacement for PackageMaker?<br></blockquote><div><br></div><di=
v style=3D"" data-mce-style=3D"">I've never used PackageMaker, but a quick =
google makes it look like productbuild is the successor.</div></div></div><=
/div></div></blockquote><blockquote style=3D"border-left:2px solid #1010FF;=
margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:n=
ormal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size=
:12pt;" data-mce-style=3D"border-left: 2px solid #1010FF; margin-left: 5px;=
 padding-left: 5px; color: #000; font-weight: normal; font-style: normal; t=
ext-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 1=
2pt;"><div dir=3D"ltr"><div><div class=3D"gmail_extra"><div class=3D"gmail_=
quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:=
solid;padding-left:1ex" data-mce-style=3D"margin: 0px 0px 0px 0.8ex; border=
-left-width: 1px; border-left-color: #cccccc; border-left-style: solid; pad=
ding-left: 1ex;">How about calling it a ProductBuild generator? &nbsp;Or is=
 it really specific to the<br> app store?<br></blockquote><div><br></div><d=
iv style=3D"" data-mce-style=3D"">This work flow appears to be specific to =
the app store. </div></div></div></div></div></blockquote><div><span style=
=3D"font-size: 12pt; ">Does this workflow in your MacAppStore generator inc=
lude anything that prevents making a .pkg for OS X Installer?</span></div><=
div><span style=3D"font-size: 12pt; ">From the stackoverlfow link below, th=
e person says App Store submissions follow different rules. &nbsp;Do you kn=
ow what those differences are?</span></div><div><br></div><blockquote style=
=3D"border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#0=
00;font-weight:normal;font-style:normal;text-decoration:none;font-family:He=
lvetica,Arial,sans-serif;font-size:12pt;" data-mce-style=3D"border-left: 2p=
x solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-wei=
ght: normal; font-style: normal; text-decoration: none; font-family: Helvet=
ica,Arial,sans-serif; font-size: 12pt;"><div dir=3D"ltr"><div><div class=3D=
"gmail_extra"><div class=3D"gmail_quote"><div style=3D"" data-mce-style=3D"=
">My quick google from earlier seemed to indicate that there can be a much =
more complex process using additional tools if you're creating a component =
installer.[1] While I'd be fine calling this generator ProductBuild I'm not=
 sure that would actually be an accurate name. If someone who has more comp=
lex packaging requirements was willing to work with me, I would be willing =
to make time to add support for additional options and features.</div></div=
></div></div></div></blockquote><div>Even if there isn't much help, it woul=
d be nice to at least start off well and go in the right direction. &nbsp;I=
'm not convinced that an implementation based on the Bundle generator way i=
s the right start.</div><div><br></div><blockquote style=3D"border-left:2px=
 solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:norm=
al;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-=
serif;font-size:12pt;" data-mce-style=3D"border-left: 2px solid #1010FF; ma=
rgin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-s=
tyle: normal; text-decoration: none; font-family: Helvetica,Arial,sans-seri=
f; font-size: 12pt;"><div dir=3D"ltr"><div><div class=3D"gmail_extra"><div =
class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px=
 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);bor=
der-left-style:solid;padding-left:1ex" data-mce-style=3D"margin: 0px 0px 0p=
x 0.8ex; border-left-width: 1px; border-left-color: #cccccc; border-left-st=
yle: solid; padding-left: 1ex;">So, it appears to be a replacement for Pack=
ageMaker, so I would suggest that<br> you not inherit the Bundle generator =
behavior.</blockquote><div><br></div><div style=3D"" data-mce-style=3D"">Gi=
ven that, for the app store, I need the .app Bundle to be created the only =
thing I could see working, off the top of my head, would be to move the .ap=
p creation from the Bundle class to the DragNDrop class.</div></div></div><=
/div></div></blockquote><div>Maybe I wasn't clear before. &nbsp;CMake can a=
lready do .app creation. &nbsp;I don't want to see it moved into the DragND=
rop generator.</div><div>See the list of target properties:&nbsp;</div><div=
><span style=3D"font-size: 12pt; "><a href=3D"http://www.cmake.org/cmake/he=
lp/v2.8.10/cmake.html#section_PropertiesonTargets">http://www.cmake.org/cma=
ke/help/v2.8.10/cmake.html#section_PropertiesonTargets</a></span></div><div=
><span style=3D"font-size: 12pt; ">There is MACOSX_BUNDLE, MACOSX_BUNDLE_IN=
FO_PLIST for example.</span></div><div><br></div><div>Why do we need to cre=
ate a .app with CPack?</div><div>If a CPack generator does it, you automati=
cally have a generator limited to certain use cases, which excludes cases s=
uch as command line tools, multiple .apps, directory structures, postflight=
 scripts, etc...</div><div><br></div><blockquote style=3D"border-left:2px s=
olid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal=
;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-se=
rif;font-size:12pt;" data-mce-style=3D"border-left: 2px solid #1010FF; marg=
in-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-sty=
le: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif;=
 font-size: 12pt;"><div dir=3D"ltr"><div><div class=3D"gmail_extra"><div cl=
ass=3D"gmail_quote"><div style=3D"" data-mce-style=3D""><br></div><div>[1]<=
a href=3D"http://stackoverflow.com/questions/11487596/making-os-x-installer=
-packages-like-a-pro-xcode4-developer-id-mountain-lion-re" target=3D"_blank=
" data-mce-href=3D"http://stackoverflow.com/questions/11487596/making-os-x-=
installer-packages-like-a-pro-xcode4-developer-id-mountain-lion-re">http://=
stackoverflow.com/questions/11487596/making-os-x-installer-packages-like-a-=
pro-xcode4-developer-id-mountain-lion-re</a></div></div></div></div></div><=
/blockquote><div><br></div><div>Clint</div></div></body></html>
------=_Part_1390531_882280081.1365801133860--


More information about the CMake mailing list