Skip to content

Instantly share code, notes, and snippets.

@drefined
Forked from ransom4real/flash_player.rb
Created September 25, 2012 19:28
Show Gist options
  • Save drefined/3783924 to your computer and use it in GitHub Desktop.
Save drefined/3783924 to your computer and use it in GitHub Desktop.
FlexSDK Homebrew formula. Installs mxmlc and other tools.
require 'formula'
class FlashPlayer < Formula
url 'http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_sa_debug.app.zip'
md5 '78b69fd614fd661529f50bd4f06c4dee'
homepage 'http://adobe.com'
version '11.1'
def install
name = 'Flash Player Debugger.app'
cp_r '.', "#{prefix}/#{name}"
ln_s "#{prefix}/#{name}", "/Applications/#{name}"
end
end
require 'formula'
class FlexSdk < Formula
url 'http://fpdownload.adobe.com/pub/flex/sdk/builds/flex3/flex_sdk_3.6.0.16995A.zip'
md5 'e0badf4756ce1a9fa3b4ccf32a8d2963'
homepage 'http://opensource.adobe.com/'
version 'v3.6.0.16995A'
def install
Dir['*'].each { |file| cp_r file, File.join( prefix, File.basename(file) ) }
ohai %{You will need to add the Flex SDK to your path:}
ohai %{ export PATH="#{bin}":$PATH}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment