Tools

From Wiki.ooo4kids.org
(Difference between revisions)
Jump to: navigation, search
(Creating a Bundle on Sugar)
Line 20: Line 20:
 
Then, create the manifest (a file that lists all the files needed for the Activity) by inputting:
 
Then, create the manifest (a file that lists all the files needed for the Activity) by inputting:
  
  find ./ | sed 's,^./,HelloWorldActivity.activity/,g' > MANIFEST
+
  find ./ | sed 's,^./,OOo4Kids.activity/,g' > MANIFEST
  
 
There you have all that is necessary in order to create your XO bundle. Just use the following command:
 
There you have all that is necessary in order to create your XO bundle. Just use the following command:

Revision as of 10:07, 22 December 2009


Tools

Scripts

DRF Tools.png 

extract_maker.sh

  • Description: script to autoextract and install the additional files for building OOo4Kids
  • Author: Eric Bachard
  • Download: extract_maker.sh
DRF Tools.png 

package_maker.sh

  • Description: script to autocompress the last building OOo4Kids and generate the md5sum
  • Author: Ben Bois
  • Download: package_maker.sh

Commands

X-script.png 

Diff of the summit from v.90 to v.113

  • Author: Eric Bachard
  • Description:

Just an example to explain how to extract incremential diffs between two subversion revisions. Values can of course be adapted (here between rev90 and rev113). IMPORTANT: the command must be entered from the $SRC_ROOT directory

  • Command:
for (( i=90 ; i < 113 ; i++ )) ; do svn diff -r$i:r$(( i+1 )) > r$(( i+1 ))".diff" ; done
  • Result:
files r90.diff, r91.diff ... and so on until r113.diff will be created

Creating a Bundle on Sugar

Once you have a proper Sugar-compatible tree, create the setup.py in your activity root folder (OOo4Kids.activity):

#!/usr/bin/env python
from sugar.activity import bundlebuilder
bundlebuilder.start()

Then, create the manifest (a file that lists all the files needed for the Activity) by inputting:

find ./ | sed 's,^./,OOo4Kids.activity/,g' > MANIFEST

There you have all that is necessary in order to create your XO bundle. Just use the following command:

./setup.py dist_xo

You might have to use this command if you are urged to do so:

./setup.py fix_manifest

And then, the bundle is ready, you can now install it by simply typing:

sugar-install-bundle yourbundle.xo
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox