Skip to content

Instantly share code, notes, and snippets.

@fabioelia
Last active October 6, 2015 02:19
Show Gist options
  • Select an option

  • Save fabioelia/1336661b8b85d6535630 to your computer and use it in GitHub Desktop.

Select an option

Save fabioelia/1336661b8b85d6535630 to your computer and use it in GitHub Desktop.
# Find downloads at: https://helpx.adobe.com/air/kb/archived-air-sdk-version.html
class AdobeAirSdk < Formula
homepage "https://www.adobe.com/devnet/air/air-sdk-download.html"
url "http://airdownload.adobe.com/air/mac/download/18.0/AIRSDK_Compiler.tbz2"
version "18.0.0.180"
sha256 "2fddd0d58d909c38fb91448fdb16029045a19d9f5d203519e23a3fcd9c42d27d"
# conflicts_with "adobe-air-sdk-flex"
def install
rm_f Dir["bin/*.bat"]
libexec.install Dir["*"]
bin.write_exec_script Dir["#{libexec}/bin/*"]
end
def caveats; <<-EOS.undent
To set AIR_HOME:
export AIR_HOME=#{libexec}
EOS
end
test do
assert_equal "#{version}\n", shell_output("#{bin}/adt -version")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment