Created
December 13, 2012 17:19
-
-
Save isao/4278074 to your computer and use it in GitHub Desktop.
`mojito build hybridapp` hacking for 0.5.x updating/fixing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -ex | |
appname=${1:-hybrid} | |
bldname=$appname-bld | |
statdir=yahoo.application.$appname | |
mojitodir=/Users/isao/Repos/mojito/myfork | |
pwd | |
mojito create app hybrid $appname | |
( #build | |
cd $appname | |
pwd | |
mojito build hybridapp ../$bldname -r -n name -t tag -c build:debug | |
) | |
( #symlink yui library, similar to crt/ide install(?) | |
cd $bldname | |
pwd | |
ln -s $mojitodir/node_modules/yui ./yahoo.libs.yui | |
) | |
( #make a dummy cfg file | |
mkdir $bldname/yahoo.crt.lib | |
touch $bldname/yahoo.crt.lib/yui-cfg.js | |
tree $bldname/yahoo.crt.lib | |
) | |
#open $bldname/$statdir/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment