[AG-TECH] Make a agpkg3 with subfolders?
Christoph Willing
c.willing at uq.edu.au
Wed Sep 1 09:02:23 CDT 2010
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.
chris
On 31/08/2010, at 3:47 AM, Jesus Cea Oliva wrote:
> Hi again Christoph, yes, I can confirm the correct files &
> directories structs exists, unziping correctly. I modified the .app
> file to contains only 1 image file ignoring the rest of images files:
>
>
> [application]
> name = Shared_PDF_Viewer
> mimetype = application/x-ag-shared-pdf-viewer
> extension = sharedpdfviewer
> files = Shared_wxPDF_Viewer.py wxPDF_Viewer.py ./images/document-
> open.png
>
> [commands]
> Open = %(python)s Shared_wxPDF_Viewer.py -a %(appUrl)s -v %(venueUrl)s
>
>
>
> When I execute:
>
> sudo agpm.py -s -p Shared_wxPDF_Viewer.agpkg
>
> The terimnal shows the following messages:
>
>
> UnpackPkg: /home/ercea/SharedPDFViewer.agpkg
> Couldn't copy file into place (undoing register).
> Unregistration of application Shared_PDF_Viewer complete
> (...) # Many times like images exists in the subfolder
> Application Shared_PDF_Viewer not found; skipping
>
>
> Regards! and thanks for your help Chris ;).
>
> El dia 30 ago 2010 15:59, Christoph Willing <c.willing at uq.edu.au>
> escribió:
> On 30/08/2010, at 11:30 PM, Jesus Cea Oliva wrote:
>
> Hi Christoph, I don't understand very well what do you mean.
>
> I have problems when I tried unpacking the Shared Application with
> the command:
>
> sudo agpm.py -s -p SharedApp.agpkg
>
> because show me messages errors about there are files that don't
> exists (the image files).
>
> Firstly, can you confirm that the correct files & directory
> structure exists in the package before you install it? You can test
> that with:
> unzip -t SharedApp.agpkg
> (which just lists the contents of the agpkg archive).
>
>
> chris
>
>
> My first .app file was:
>
> [application]
>
> name = MySharedApp
> mimetype = application/x-ag-my-shared-app
> extension = mysharedapp
> files = MySharedApp.py MySharedApp_GUI.py ./images/*
>
>
> [commands]
> Open = %(python)s FicheroPrincipal.py -a %(appUrl)s -v %(venueUrl)s
>
>
> but it doesn't work. Then, I tried this:
>
> [application]
>
> name = MySharedApp
> mimetype = application/x-ag-my-shared-app
> extension = mysharedapp
> files = MySharedApp.py MySharedApp_GUI.py ./images/icon1.png ./
> images/icon2.png ...
>
>
> [commands]
> Open = %(python)s FicheroPrincipal.py -a %(appUrl)s -v %(venueUrl)s
>
>
> but, it doen't work too :S.
>
>
> Regards again! ;)
>
> El dia 30 ago 2010 14:55, Christoph Willing <c.willing at uq.edu.au>
> escribió:
> On 30/08/2010, at 9:19 PM, Jesus Cea Oliva wrote:
>
> Hi list.
>
> 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.
>
> 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.
>
> Is it possible create agpkg3 files that contains subfolders with
> other files?
>
> Just a guess - you probably have to reference the file in a
> subdirectory with something like:
> icon1 = os.path.join(os.getcwd(), "images", "incon1.png")
>
> Then do something with icon1
>
>
> chris
>
>
> Christoph Willing +61 7 3365 8316
> QCIF Access Grid Manager
> University of Queensland
>
> Christoph Willing +61 7 3365 8316
> QCIF Access Grid Manager
> University of Queensland
>
>
Christoph Willing +61 7 3365 8316
QCIF Access Grid Manager
University of Queensland
More information about the ag-tech
mailing list