Are you new? Read the FAQ and catch up on!
1k views

Basic rakefile for ActionScript

This is just an extremely simple rakefile (see Rake) that compiles an ActionScript project:

Ruby
  1. require 'rake/clean'
  2.  
  3. CLOBBER.include('bin-debug/*')
  4. CLOBBER.include('bin-release/*')
  5.  
  6. task :default => ["debug"]
  7.  
  8. # Compiles the debug version of the project
  9. file 'bin-debug/RakeTest.swf' => ['RakeTest.as'] do
  10.   sh "mxmlc --debug=true --static-link-runtime-shared-libraries=true -output=bin-debug/RakeTest.swf PruebaRake.as"
  11. end
  12.  
  13. # Compiles the release version of the project
  14. file 'bin-release/RakeTest.swf' => ['RakeTest.as'] do
  15.   sh "mxmlc --static-link-runtime-shared-libraries=true -output=bin-release/RakeTest.swf RakeTest.as"
  16. end
  17.  
  18. file 'debug' => 'bin-debug/RakeTest.swf'
  19. file 'release' => 'bin-release/RakeTest.swf'
  20.  

­

Tags: Ruby rake

Embed: