@@ -19,7 +19,7 @@ VIDEO_VERSION = 'v2.0'
19
19
EXAMPLES = '3.9'
20
20
HOME_DIR = ENV [ 'HOME' ]
21
21
MAC_OR_LINUX = /linux|mac|darwin/ . match? ( RbConfig ::CONFIG [ 'host_os' ] )
22
-
22
+ DOWNLOAD = 'releases/download/latest'
23
23
CLOBBER << "jruby-complete-#{ JRUBYC_VERSION } .jar"
24
24
CLOBBER << "jruby-complete-#{ JRUBYC_VERSION } .jar.sha256"
25
25
@@ -82,28 +82,28 @@ task :init_dir do
82
82
end
83
83
84
84
desc 'download and copy sound library to ~/.jruby_art'
85
- task download_and_copy_sound : %i[ wget_check init_dir download_sound copy_sound clobber ]
85
+ task install_sound : %i[ wget_check init_dir download_sound copy_sound clobber ]
86
86
87
87
desc 'download and copy video library to ~/.jruby_art'
88
- task download_and_copy_video : %i[ wget_check init_dir download_video copy_video clobber ]
88
+ task install_video : %i[ wget_check init_dir download_video copy_video clobber ]
89
89
90
90
desc 'download sound library'
91
91
task :download_sound do
92
92
wget_base = 'wget https://github.com/processing/processing-sound'
93
- wget_string = [ wget_base , 'releases/download/latest' , SOUND ] . join ( '/' )
93
+ wget_string = [ wget_base , DOWNLOAD , SOUND ] . join ( '/' )
94
94
puts wget_string
95
95
system wget_string
96
96
end
97
97
98
98
desc 'download video library'
99
99
task :download_video do
100
100
wget_base = 'wget https://github.com/processing/processing-video'
101
- wget_string = [ wget_base , 'releases/download' , VIDEO ] . join ( '/' )
101
+ wget_string = [ wget_base , DOWNLOAD , VIDEO ] . join ( '/' )
102
102
system wget_string
103
103
end
104
104
105
105
desc 'copy sound library'
106
- task copy_sound : SOUND do
106
+ task :copy_sound do
107
107
system "unzip #{ SOUND } "
108
108
if File . exist? "#{ HOME_DIR } /.jruby_art/libraries/sound"
109
109
FileUtils . rm_r "#{ HOME_DIR } /.picrate/libraries/sound"
@@ -113,7 +113,7 @@ task copy_sound: SOUND do
113
113
end
114
114
115
115
desc 'copy video library'
116
- task copy_video : VIDEO do
116
+ task :copy_video do
117
117
system "unzip #{ VIDEO } "
118
118
if File . exist? "#{ HOME_DIR } /.jruby_art/libraries/video"
119
119
FileUtils . rm_r "#{ HOME_DIR } /.picrate/libraries/video"
0 commit comments