<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">fyi, This fix was included in the 3.2 release.<div><br></div><div>Tom</div><div><br><div><div>On Sep 1, 2010, at 12:24 PM, Jesus Cea Oliva wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><p>Christoph, thank you very much, always you help me jejeje.&nbsp;I'm impatient, waiting the new version 3.2 ^^.</p><p>Regards!</p>
<div><em>El dia 01 sep 2010 16:02, Christoph Willing &lt;<a href="mailto:c.willing@uq.edu.au">c.willing@uq.edu.au</a>&gt; escribió:</em></div><blockquote class="replyBlock" style="border-left: 2px solid #000083; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p>For the list, a fix is now in the svn repo., allowing shared app  packages containing subdirectories to be installed. Hopefully its  still in time for the 3.2 release.</p>
<br><p>chris</p>
<br><p>On 31/08/2010, at 3:47 AM, Jesus Cea Oliva wrote:</p>
<blockquote class="replyBlock" style="border-left: 2px solid #000083; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p>Hi again Christoph, yes, I can confirm the correct files &amp;  directories structs exists, unziping correctly. I modified the .app  file to contains only 1 image file ignoring the rest of images files:</p>
<br><p>[application]<br>
name = Shared_PDF_Viewer<br>
mimetype = application/x-ag-shared-pdf-viewer<br>
extension = sharedpdfviewer<br>
files = Shared_wxPDF_Viewer.py wxPDF_Viewer.py ./images/document- open.png</p><p>[commands]<br>
Open = %(python)s Shared_wxPDF_Viewer.py -a %(appUrl)s -v %(venueUrl)s</p>
<br>
<br><p>When I execute:</p><p>sudo agpm.py -s -p Shared_wxPDF_Viewer.agpkg</p><p>The terimnal shows the following messages:</p>
<br><p>UnpackPkg: /home/ercea/SharedPDFViewer.agpkg<br>
Couldn't copy file into place (undoing register).<br>
Unregistration of application Shared_PDF_Viewer complete<br>
(...) # Many times like images exists in the subfolder<br>
Application Shared_PDF_Viewer not found; skipping</p>
<br><p>Regards! and thanks for your help Chris ;).</p><p>El dia 30 ago 2010 15:59, Christoph Willing &lt;<a href="mailto:c.willing@uq.edu.au">c.willing@uq.edu.au</a>&gt;  escribió:<br>
On 30/08/2010, at 11:30 PM, Jesus Cea Oliva wrote:</p><p>Hi Christoph, I don't understand very well what do you mean.</p><p>I have problems when I tried unpacking the Shared Application with  the command:</p><p>sudo agpm.py -s -p SharedApp.agpkg</p><p>because show me messages errors about there are files that don't  exists (the image files).</p><p>Firstly, can you confirm that the correct files &amp; directory  structure exists in the package before you install it? You can test  that with:<br>
unzip -t SharedApp.agpkg<br>
(which just lists the contents of the agpkg archive).</p>
<br><p>chris</p>
<br><p>My first .app file was:</p><p>[application]</p><p>name = MySharedApp<br>
mimetype = application/x-ag-my-shared-app<br>
extension = mysharedapp<br>
files = MySharedApp.py MySharedApp_GUI.py ./images/*</p>
<br><p>[commands]<br>
Open = %(python)s FicheroPrincipal.py -a %(appUrl)s -v %(venueUrl)s</p>
<br><p>but it doesn't work. Then, I tried this:</p><p>[application]</p><p>name = MySharedApp<br>
mimetype = application/x-ag-my-shared-app<br>
extension = mysharedapp<br>
files = MySharedApp.py MySharedApp_GUI.py ./images/icon1.png ./  images/icon2.png ...</p>
<br><p>[commands]<br>
Open = %(python)s FicheroPrincipal.py -a %(appUrl)s -v %(venueUrl)s</p>
<br><p>but, it doen't work too :S.</p>
<br><p>Regards again! ;)</p><p>El dia 30 ago 2010 14:55, Christoph Willing &lt;<a href="mailto:c.willing@uq.edu.au">c.willing@uq.edu.au</a>&gt;  escribió:<br>
On 30/08/2010, at 9:19 PM, Jesus Cea Oliva wrote:</p><p>Hi list.</p><p>First all, I hope you had a good holiday ^^. Well, I've developed a  Shared Application (that soon, I would like to shared with yours),    and it has a subfolder, called 'images', that contains several icons  from the app.</p><p>When I created the .app file, on section 'files', I tried putting  relatives paths to references this images (./images/icon1.png,  etc),  but it didn't work.</p><p>Is it possible create agpkg3 files that contains subfolders with  other files?</p><p>Just a guess - you probably have to reference the file in a  subdirectory with something like:<br>
icon1 = os.path.join(os.getcwd(), "images", "incon1.png")</p><p>Then do something with icon1</p>
<br><p>chris</p>
<br><p>Christoph Willing +61 7 3365 8316<br>
QCIF Access Grid Manager<br>
University of Queensland</p><p>Christoph Willing +61 7 3365 8316<br>
QCIF Access Grid Manager<br>
University of Queensland</p>
</blockquote><p>Christoph Willing                       +61 7 3365 8316<br>
QCIF Access Grid Manager<br>
University of Queensland</p>
</blockquote><div>&nbsp;<br class="webkit-block-placeholder"></div>
</div>
</blockquote></div><br></div></body></html>