Trying to package an app created with bowline.

18 views
Skip to first unread message

nick

unread,
Oct 2, 2009, 10:16:44 PM10/2/09
to Bowline Dev
Hello, all.
I guess I'm the first to post :-)

I'm trying to package an app - and I keep getting an error.

Here is a little more detail:

I packaged a small app using default create a project feature. That
worked fine.

Then I generated the same app using ruby and bowline) , Imported
project into Titanium Developer. Tested using Launch feature, but when
trying to package into Mac or Win app - it's not packaging: getting
500 error. Is there any way to package it manually or to get this to
work using Developer?

(Also posted on Appcelerator Website Forum - maybe someone there has
an idea)

Thanks
Nick

P.S.:
Cudos to Alex for coming up with the gem :-)

Alex MacCaw

unread,
Oct 3, 2009, 2:55:07 AM10/3/09
to bowli...@googlegroups.com
Have you vendorized all the gems you need?

rake gems:sync
--
http://www.leadthinking.com | http://socialmod.com

nick gorbikoff

unread,
Oct 3, 2009, 3:49:22 AM10/3/09
to bowli...@googlegroups.com
Thanks for advice Alex.
I tried it  - it gets activerecord, but then breaks with this error message
This is a freshly generated app - doesn't have any code in it yet.

bowline is install  - directly from github.

If I try to "gem install bowline"  - it installs v=0.4.6

--------------- ERROR ---------------
thor:acd nick$ rake gems:sync
(in /Users/nick/Work/IT/System/Apps/acd)
Cannot find bowline = 0.4.8
rake aborted!
A required dependency bowline (= 0.4.8, runtime) was not found

(See full trace by running task with --trace)
--------------- ERROR ---------------

script/run - works fine.

I run on a fresh reinstall of Snow Leopard,

-------------- ENV -------------------

thor:acd nick$ ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]

thor:acd nick$ gem -v
1.3.5

thor:acd nick$ gem list

*** LOCAL GEMS ***

actionmailer (2.3.4, 2.2.2, 1.3.6)
actionpack (2.3.4, 2.2.2, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.3.4, 2.2.2, 1.15.6)
activeresource (2.3.4, 2.2.2)
activesupport (2.3.4, 2.2.2, 1.4.4)
acts_as_ferret (0.4.4, 0.4.3)
capistrano (2.5.9, 2.5.2)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
diff-lcs (1.1.2)
dnssd (1.3, 0.6.0)
extlib (0.9.13)
fastthread (1.0.7, 1.0.1)
fcgi (0.8.7)
ferret (0.11.6)
gem_plugin (0.2.3)
highline (1.5.1, 1.5.0)
hpricot (0.8.1, 0.6.164)
libxml-ruby (1.1.3, 1.1.2)
maccman-bowline (0.4.8)
mongrel (1.1.5)
mysql (2.8.1)
needle (1.3.0)
net-scp (1.0.2, 1.0.1)
net-sftp (2.0.2, 2.0.1, 1.1.1)
net-ssh (2.0.15, 2.0.4, 1.1.4)
net-ssh-gateway (1.0.1, 1.0.0)
rack (1.0.0)
rails (2.3.4, 2.2.2, 1.2.6)
rake (0.8.7, 0.8.3)
RedCloth (4.2.2, 4.1.1)
ruby-openid (2.1.7, 2.1.2)
ruby-yadis (0.3.4)
rubygems-update (1.3.5)
rubynode (0.1.5)
sqlite3-ruby (1.2.5, 1.2.4)
templater (1.0.0)
termios (0.9.4)
xmpp4r (0.5, 0.4)


-------------- ENV -------------------
--
--------------------------------------

Nick Gorbikoff
nick.go...@gmail.com

Nick Gorbikoff

unread,
Oct 5, 2009, 5:17:01 PM10/5/09
to Bowline Dev
OK I figured out how to fix rake gems:sync

Somewhere in the code there is a call to bowline. But if you install
bowline as directed in Readme from source on git - it installs as
maccman-bowline. So it needs to be downloaded from git as a source in
zip or tar - extracted and then in that folder run "gem build
bowline.gemspec" - that installs it as bowline gem not macman-bowline

Also there is a problem in app.rake file on Windows system. gsub -
strips oiut the whole path and just leaves a null in the ti_lib_path
variable.

So I substituted the lines 139 to 143 for this code ( this a temp,
solution - obviously the problem is that wrong spaces get stripped -
but for now that worked):

#ti_lib_path = Dir[File.join(ti_path, "sdk", "win32", "0.6.0")]
[-1]

ti_path = '"C:\\Documents and Settings\\All Users\\Application Data\
\Titanium"'
ti_lib_path = '"C:\\Documents and Settings\\All Users\\Application
Data\\Titanium\\sdk\\win32\\0.6.0"'
#ti_path.gsub!('\\', '/')
ti_lib_path.gsub!('\\', '/')
puts ti_path
puts ti_lib_path
# Space in osx path
#ti_path.gsub!(' ', '\ ')
#ti_lib_path.gsub!(' ', '\ ')




Which then works fine for rake gems:sync

All gems then become vendorized.



However when I try to package it using Titanium developer it still
fails However Launch & test work fine.
> > On Sat, Oct 3, 2009 at 4:16 AM, nick <nick.gorbik...@gmail.com> wrote:
>
> >> Hello, all.
> >> I guess I'm the first to post :-)
>
> >> I'm trying to package an app - and I keep getting an error.
>
> >> Here is a little more detail:
>
> >> I packaged a small app using default create a project feature. That
> >> worked fine.
>
> >> Then I generated the same app using ruby and bowline) , Imported
> >> project into Titanium Developer. Tested using Launch feature, but when
> >> trying to package into Mac or Win app - it's not packaging: getting
> >> 500 error. Is there any way to package it manually or to get this to
> >> work using Developer?
>
> >> (Also posted on Appcelerator Website Forum - maybe someone there has
> >> an idea)
>
> >> Thanks
> >> Nick
>
> >> P.S.:
> >> Cudos to Alex for coming up with the gem :-)
>
> > --
> >http://www.leadthinking.com|http://socialmod.com
>
> --
> --------------------------------------
>
> Nick Gorbikoff
> nick.gorbik...@gmail.com
Reply all
Reply to author
Forward
0 new messages