Build-script for compressing Mojo-Applications and package them (Linux / Mac OS X)
Ruby
Pull request Compare This branch is 19 commits behind robertkowalski:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.textile
build.rb
compress-my-mojo

README.textile

“Compress my Mojo – Linux & Mac OS X”

Compresses your webOS-Mojo-Applications and builds packages

Copyright © 2011, R. Kowalski
All rights reserved.

New BSD License:

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Installation Notes:

Needed:

  • Java (also in your $PATH)
  • Ruby
  • OS: currently Linux / Mac OS X are supported

Configurate:

  • Set your path to YUI-Compressor or Google Closure Compiler jar in rb-file or place them in the directory of this project
  • Add the directory of (a link to) compress-my-mojo to your $PATH at end of your .bashrc, for example:
export PATH="$PATH:/your/path/to/compress-my-mojo"

Compress JS (& CSS) and build IPK:

$ compress-my-mojo [-i|v1|g] <PROJECTFOLDER-Name>

Options:
-i install to default device
-v1 package for >= webOS 1.4.x devices (old format)
-g to use google closure compiler (default is YUI-Compressor)

or combine them: -iv1g to package for webOS 1.4.x devices (old format), using Google Closure Compiler and installing them