Skip to content

Commit 60dd3a3

Browse files
committed
update examples
1 parent 60ef663 commit 60dd3a3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

vendors/Rakefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ SOUND = 'sound.zip'
77
SOUND_VERSION = 'v1.3.2'
88
VIDEO = 'video-2.0-beta4.zip'
99
VIDEO_VERSION = 'r6-v2.0-beta4'
10-
EXAMPLES = '0.5.1'
10+
EXAMPLES = '0.5.2'
1111
HOME_DIR = ENV['HOME']
1212
LIBRARY = File.join(HOME_DIR, '.picrate', 'libraries')
13-
EXAMPLES_DIR = File.join(HOME_DIR, 'projects', 'examples')
13+
PROJECT_DIR = File.join(HOME_DIR, 'projects')
14+
EXAMPLES_DIR = File.join(PROJECT_DIR, 'examples')
1415
CLOBBER.include(EXAMPLES, SOUND, VIDEO)
1516

1617
def dependency
@@ -78,7 +79,7 @@ desc 'copy examples'
7879
task copy_examples: %i[download_samples] do
7980
system "tar xzvf #{EXAMPLES}.tar.gz"
8081
FileUtils.rm_r EXAMPLES_DIR if File.exist? EXAMPLES_DIR
81-
FileUtils.mkdir_p EXAMPLES_DIR
82+
FileUtils.mkdir_p PROJECT_DIR unless File.exist? PROJECT_DIR
8283
FileUtils.cp_r "picrate-examples-#{EXAMPLES}", EXAMPLES_DIR
8384
FileUtils.rm_r "picrate-examples-#{EXAMPLES}"
8485
end

0 commit comments

Comments
 (0)