Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
monkstone committed Dec 19, 2019
1 parent 60ef663 commit 60dd3a3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vendors/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ SOUND = 'sound.zip'
SOUND_VERSION = 'v1.3.2'
VIDEO = 'video-2.0-beta4.zip'
VIDEO_VERSION = 'r6-v2.0-beta4'
EXAMPLES = '0.5.1'
EXAMPLES = '0.5.2'
HOME_DIR = ENV['HOME']
LIBRARY = File.join(HOME_DIR, '.picrate', 'libraries')
EXAMPLES_DIR = File.join(HOME_DIR, 'projects', 'examples')
PROJECT_DIR = File.join(HOME_DIR, 'projects')
EXAMPLES_DIR = File.join(PROJECT_DIR, 'examples')
CLOBBER.include(EXAMPLES, SOUND, VIDEO)

def dependency
Expand Down Expand Up @@ -78,7 +79,7 @@ desc 'copy examples'
task copy_examples: %i[download_samples] do
system "tar xzvf #{EXAMPLES}.tar.gz"
FileUtils.rm_r EXAMPLES_DIR if File.exist? EXAMPLES_DIR
FileUtils.mkdir_p EXAMPLES_DIR
FileUtils.mkdir_p PROJECT_DIR unless File.exist? PROJECT_DIR
FileUtils.cp_r "picrate-examples-#{EXAMPLES}", EXAMPLES_DIR
FileUtils.rm_r "picrate-examples-#{EXAMPLES}"
end
Expand Down

0 comments on commit 60dd3a3

Please sign in to comment.