Skip to content

Commit

Permalink
Backport OS X installer metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
tjarratt committed Apr 10, 2014
1 parent ab3d17e commit 2652a14
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 4 deletions.
6 changes: 3 additions & 3 deletions installers/homebrew/cf-bin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

class CfBin < Formula
homepage 'https://github.com/cloudfoundry/cli'
url 'https://github.com/cloudfoundry/cli/releases/download/v6.0.0/cf-darwin-amd64.tgz'
sha1 'f2b27f521da2abeacc289071f5f409cfef8ce9e3'
url 'https://github.com/cloudfoundry/cli/releases/download/v6.0.1/cf-darwin-amd64.tgz'
sha1 '548a83996ade1fb4c4334e4ebcfd558434c01daf'

def install
system 'curl -O https://raw.github.com/cloudfoundry/cli/v6.0.0/LICENSE'
system 'curl -O https://raw.github.com/cloudfoundry/cli/v6.0.1/LICENSE'
bin.install 'cf-darwin-amd64' => 'cf'
doc.install 'LICENSE'
end
Expand Down
3 changes: 2 additions & 1 deletion installers/homebrew/cf-src.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

class CfSrc < Formula
homepage 'https://github.com/cloudfoundry/cli'
url 'https://github.com/cloudfoundry/cli.git', :tag => 'v6.0.0'
url 'https://github.com/cloudfoundry/cli.git', :tag => 'v6.0.1'

head 'https://github.com/cloudfoundry/cli.git', :branch => 'master'

depends_on 'go' => :build

def install
inreplace 'src/cf/app_constants.go', 'SHA', 'homebrew'
inreplace 'src/cf/app_constants.go', 'BUILT_FROM_SOURCE', 'homebrew'
system 'bin/build'
bin.install 'out/cf'
doc.install 'LICENSE'
Expand Down
26 changes: 26 additions & 0 deletions installers/osx/Distribution
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<installer-gui-script minSpecVersion="2">
<pkg-ref id="com.cloudfoundry.cli">
<bundle-version>
<bundle CFBundleShortVersionString="6.6" CFBundleVersion="1510" SourceVersion="1510000000000000" BuildVersion="1" id="com.cloudfoundry.cli" path="Cloud Foundry CLI.app"/>
</bundle-version>
</pkg-ref>
<product id="com.cloudfoundry.cli" version="6.6"/>
<title>Cloud Foundry CLI</title>
<options customize="never" require-scripts="false" hostArchitectures="x86_64"/>
<volume-check>
<allowed-os-versions>
<os-version min="10.7"/>
</allowed-os-versions>
</volume-check>
<choices-outline>
<line choice="default">
<line choice="com.cloudfoundry.cli"/>
</line>
</choices-outline>
<choice id="default" title="Cloud Foundry CLI" versStr="6.6"/>
<choice id="com.cloudfoundry.cli" title="Cloud Foundry CLI" visible="false">
<pkg-ref id="com.cloudfoundry.cli"/>
</choice>
<pkg-ref id="com.cloudfoundry.cli" version="6.6.0" installKBytes="15000" onConclusion="none">#com.cloudfoundry.cli.pkg</pkg-ref>
</installer-gui-script>
10 changes: 10 additions & 0 deletions installers/osx/com.cloudfoundry.cli.pkg/PackageInfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<pkg-info overwrite-permissions="true" relocatable="false" identifier="com.pivotal.cloudfoundry.pkg" postinstall-action="none" version="0" format-version="2" generator-version="InstallCmds-319 (12F37)" auth="root">
<payload numberOfFiles="9" installKBytes="14019"/>
<bundle-version/>
<upgrade-bundle/>
<update-bundle/>
<atomic-update-bundle/>
<strict-identifier/>
<relocate/>
</pkg-info>

0 comments on commit 2652a14

Please sign in to comment.