Created
March 18, 2010 20:34
-
-
Save lukebayes/336856 to your computer and use it in GitHub Desktop.
Build a SWF with the last release of each version of the Flex SDK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sprout' | |
sprout 'as3' | |
sdk_versions = ['2.1.2', '3.5.1', '4.2.11'] | |
# Create a Build task for each known revision of the Flex SDK | |
sdk_versions.each do |version| | |
primary = version.split('.').shift | |
desc "Compile with Flex SDK #{version}" | |
mxmlc "bin/FlexSDK-#{version}.swf" do |t| | |
t.input = 'src/FlexParent.mxml' | |
t.gem_name = "sprout-flex#{primary}sdk-tool" | |
t.gem_version = version | |
t.source_path << 'assets' | |
end | |
end | |
sdk_tasks = sdk_versions.collect {|version| "bin/FlexSDK-#{version}.swf" } | |
desc "Compile all versions" | |
task :compile_all => sdk_tasks | |
# Run rake -T to see list of available tasks | |
# can build a specific SWF with: | |
# rake bin/FlexSDK-3.3.1.swf | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment