u3 - invalid manifest file

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

u3 - invalid manifest file

Post by malte » Wed Jan 17, 2007 11:50 pm

Hi,

I just tried to make a u3 compliant app. After downloading the selftest app. from u3 I try to validate the u3p file created by rev.
The self validation fails at step pi3.
element content failed type check:0<=0
Schematron validation
In pattern upgrade:
options should have an "upgrade" element if the u3 launchpad upgrade process is to be used in the future.
in pattern short description:
Considder adding a shorDescription child to the 'application' element. The shortDescription field allows you to set up a Launchpad info tooltip for versions of the U3 Launchpad that have support for tooltips.
In pattern string-length(.)<1:
there is no string present for the vendor element.
Do I need to change the manifest file in the u3p folder manually?

All the best,

Malte

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte » Fri Jan 19, 2007 4:22 pm

Just talked to Claudio of U3. I think I share my findings and keep this as a reminder to myself:

There is a change of the manifest file required. It is important to change the <options> element

Code: Select all

<options>
<!-- Defines the minimal (estimated) space required for the
application. -->
<minFreeSpace>number of MBs required</minFreeSpace>
<upgrade appData="add" deviceExec="overwrite"/>
</options>
The formula to calculate the number of MBs is:

U3P File Size + Uncompressed Size of DEVICE and DATA folder + 12% overhead.


All the best,

Malte

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat Jan 20, 2007 5:47 pm

Thanks for the update, Malte. Did you add this bug to QC (Quality Control, not sure what to call it yet)?

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte » Sat Jan 20, 2007 6:07 pm

Hi Mark,

no, not yet. I am unsure if this is a bug or a missing feature. Seems one needs to calculate the approx size of the .u3p file before one can add the information to the manifest.u3i file, but as one is able to add stuff to the Data folder I am not sure if Rev is always able to calculate the right size. However, everything would be better than 0 I think and at least it should be documented somehow.

All the best,

Malte

mvanhoudt
Posts: 11
Joined: Wed Jul 26, 2006 4:08 pm
Contact:

Post by mvanhoudt » Mon Feb 05, 2007 10:43 am

Hi Malte,

The Standalone builder should include the MinFreeSpace element in the manifest. If it is missing or indeed incorrectly calculated then this is a bug, although we may need to assume a certain flexibility when doing this calculation.
Marcus van Houdt
Software Developer at Runtime Revolution
marcus@runrev.com

Post Reply