public
Description: Code as Art, Art as Code. Processing and Ruby are meant for each other.
Homepage: http://github.com/jashkenas/ruby-processing/wikis
Clone URL: git://github.com/jashkenas/ruby-processing.git
Custom icons for those who put .icns in their data folder. For app 
exports.
jashkenas (author)
Fri Apr 18 19:19:44 -0700 2008
commit  43fddd6f7937a956e81ec755efd94caf348a5260
tree    9514c407b4206a7d1eb5ccb4db69177a1273c088
parent  ade68dab2448a82f00bdc7342a355a8090d12264
...
50
51
52
 
 
 
 
53
54
55
...
50
51
52
53
54
55
56
57
58
59
0
@@ -50,6 +50,10 @@ module Processing
0
       library_files = Dir.glob("library/{#{libs_to_load.join(",")}}") if libs_to_load.length > 0
0
       cp_r(library_files, File.join(app_dir, prefix, "library")) if library_files
0
       
0
+ # Move the icon
0
+ potential_icon = Dir.glob(File.join(app_dir, prefix, "data/*.icns"))[0]
0
+ move(potential_icon, File.join(app_dir, "Contents/Resources/sketch.icns"), :force => true ) if potential_icon
0
+
0
       # Figure out the substitutions.
0
       file_list = Dir.glob(app_dir + "{/**/*.{rb,jar},/data/*.*}").map {|f| f.sub(app_dir + "/", "")}
0
       @class_path = file_list.map {|f| "$JAVAROOT/" + f.sub(prefix+"/", "") }.join(":")
...
1
2
3
4
5
6
7
8
9
...
1
2
3
 
4
 
5
6
7
0
@@ -1,9 +1,7 @@
0
 // A RubyLauncher for Launchin' that Ruby code.
0
 // -- omygawshkenas
0
 
0
-import java.util.Arrays;
0
 import java.io.*;
0
-import java.lang.reflect.InvocationTargetException;
0
 
0
 import org.jruby.Ruby;
0
 import org.jruby.RubyInstanceConfig;

Comments

    No one has commented yet.