Skip to content

Instantly share code, notes, and snippets.

@isao
Created December 13, 2012 17:19
Show Gist options
  • Save isao/4278074 to your computer and use it in GitHub Desktop.
Save isao/4278074 to your computer and use it in GitHub Desktop.
`mojito build hybridapp` hacking for 0.5.x updating/fixing
#!/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