doki_pen wrote:
doki_pen wrote:
Built with ruby1.9. Now I get this error in the Shoes Console when
running 'shoes -p':
Error in <unknown> line 0 | 2009-04-07 14:51:45 -0400
! uninitialized constant Shoes::App::I_NET
(that is typed, since I can't copy/paste the shoes console)
Got it working, I'll submit a patch soon.
Attached is the patch. It might be overkill, you tell me. Now I get
the packager GUI.
When I try to create a OS X package, it hangs.
When I try to create a windows exe, I get the following segfault:
/home/rcorsaro/src/shoes.github/dist/lib/shoes/pack.rb:37: [BUG]
Segmentation fault
ruby 1.9.1 (2008-11-23 revision 20334) [i686-linux]
-- control frame ----------
c:0006 p:---- s:0028 b:0028 l:000027 d:000027 CFUNC :initialize
c:0005 p:---- s:0026 b:0026 l:000025 d:000025 CFUNC :new
c:0004 p:0083 s:0022 b:0022 l:000021 d:000021 METHOD
/home/rcorsaro/src/shoes.github/dist/lib/shoes/pack.rb:37
c:0003 p:0237 s:0009 b:0009 l:00176c d:0020f8 BLOCK
/home/rcorsaro/src/shoes.github/dist/lib/shoes/pack.rb:321
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP
---------------------------
DBG> : "/home/rcorsaro/src/shoes.github/dist/lib/shoes/pack.rb:37:in
`initialize'"
DBG> : "/home/rcorsaro/src/shoes.github/dist/lib/shoes/pack.rb:37:in `new'"
DBG> : "/home/rcorsaro/src/shoes.github/dist/lib/shoes/pack.rb:37:in `exe'"
DBG> : "/home/rcorsaro/src/shoes.github/dist/lib/shoes/pack.rb:321:in
`block in build_thread'"
-- backtrace of native function call (Use addr2line) --
0xb7ed22b5
0xb7e047be
0xb7e0481b
0xb7e83333
0xffffe40c
0xb5c606c9
0xb7ecf263
0xb7ecf6d6
0xb7e06073
0xb7e350ba
0xb7ec287e
0xb7ed0a04
0xb7ec90ff
0xb7ecd44b
0xb7ecda47
0xb7ecde1f
0xb7ed6999
0xb7ed6ab1
0xb79ba17b
0xb7a8d09e
-------------------------------------------------------
/home/rcorsaro/src/shoes.github/dist/shoes: line 23: 16124
Aborted LD_LIBRARY_PATH=$APPPATH $APPPATH/shoes-bin "$@"
fix reference to I_NET in pack.rb
From: doki_pen <[email protected]>
---
lib/shoes/pack.rb | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/lib/shoes/pack.rb b/lib/shoes/pack.rb
index 94bf802..806c63f 100644
--- a/lib/shoes/pack.rb
+++ b/lib/shoes/pack.rb
@@ -215,9 +215,9 @@ END
end
end
- I_NET = "No, download Shoes if it's absent."
- I_YES = "Yes, I want Shoes included."
- I_NOV = "Yes, include Shoes, but without video support."
+ Shoes::Pack::I_NET = "No, download Shoes if it's absent."
+ Shoes::Pack::I_YES = "Yes, I want Shoes included."
+ Shoes::Pack::I_NOV = "Yes, include Shoes, but without video support."
PackMake = proc do
background "#DDD"
@@ -264,7 +264,7 @@ END
end
para "Include Shoes with your app? ", :margin => 0
- @inc = list_box :items => [I_NET, I_YES, I_NOV], :width => 0.6 do
+ @inc = list_box :items => [Shoes::Pack::I_NET, Shoes::Pack::I_YES,
Shoes::Pack::I_NOV], :width => 0.6 do
est_recount
end
inscription "(This option doesn't apply to Shoes .shy files.)"
@@ -276,9 +276,9 @@ END
def est_recount
base =
case @inc.text
- when I_NET; 70
- when I_YES; 7000
- when I_NOV; 2500
+ when Shoes::Pack::I_NET; 70
+ when Shoes::Pack::I_YES; 7000
+ when Shoes::Pack::I_NOV; 2500
end
base += ((File.directory?(@path) ? Shy.du(@path) : File.size(@path))
rescue 0) / 1024
@est.replace "Estimated size of each app: ", strong(base > 1024 ?
@@ -441,7 +441,7 @@ END
@exe.checked = true
@dmg.checked = true
@run.checked = true
- @inc.choose I_NET
+ @inc.choose Shoes::Pack::I_NET
end
end
end