Explorar o código

Merge pull request #509 from bfirsh/smarter-binary-urls

Use uname to generate binary download URL
Aanand Prasad %!s(int64=11) %!d(string=hai) anos
pai
achega
d91c458d52
Modificáronse 4 ficheiros con 8 adicións e 10 borrados
  1. 1 1
      CONTRIBUTING.md
  2. 3 7
      docs/install.md
  3. 2 1
      script/build-linux
  4. 2 1
      script/build-osx

+ 1 - 1
CONTRIBUTING.md

@@ -86,7 +86,7 @@ The easiest way to do this is to use the `--signoff` flag when committing. E.g.:
 
 3. Build Linux version on any Docker host with `script/build-linux` and attach to release
 
-4. Build OS X version on Mountain Lion with `script/build-osx` and attach to release
+4. Build OS X version on Mountain Lion with `script/build-osx` and attach to release as `fig-Darwin-x86_64` and `fig-Linux-x86_64`.
 
 5. Publish GitHub release, creating tag
 

+ 3 - 7
docs/install.md

@@ -14,15 +14,11 @@ First, install Docker version 1.0 or greater. If you're on OS X, you can use [do
 
 Docker has guides for [Ubuntu](http://docs.docker.io/en/latest/installation/ubuntulinux/) and [other platforms](http://docs.docker.io/en/latest/installation/) in their documentation.
 
-Next, install Fig. On OS X:
+Next, install Fig:
 
-    curl -L https://github.com/docker/fig/releases/download/0.5.2/darwin > /usr/local/bin/fig; chmod +x /usr/local/bin/fig
+    curl -L https://github.com/docker/fig/releases/download/0.5.2/fig-`uname -s`-`uname -m` > /usr/local/bin/fig; chmod +x /usr/local/bin/fig
 
-On 64-bit Linux:
-
-    curl -L https://github.com/docker/fig/releases/download/0.5.2/linux > /usr/local/bin/fig; chmod +x /usr/local/bin/fig
-
-Fig is also available as a Python package if you're on another platform (or if you prefer that sort of thing):
+Releases are available for OS X and 64-bit Linux. Fig is also available as a Python package if you're on another platform (or if you prefer that sort of thing):
 
     $ sudo pip install -U fig
 

+ 2 - 1
script/build-linux

@@ -4,4 +4,5 @@ mkdir -p `pwd`/dist
 chmod 777 `pwd`/dist
 docker build -t fig .
 docker run -u user -v `pwd`/dist:/code/dist fig pyinstaller -F bin/fig
-docker run -u user -v `pwd`/dist:/code/dist fig dist/fig --version
+mv dist/fig dist/fig-Linux-x86_64
+docker run -u user -v `pwd`/dist:/code/dist fig dist/fig-Linux-x86_64 --version

+ 2 - 1
script/build-osx

@@ -6,4 +6,5 @@ venv/bin/pip install -r requirements.txt
 venv/bin/pip install -r requirements-dev.txt
 venv/bin/pip install .
 venv/bin/pyinstaller -F bin/fig
-dist/fig --version
+mv dist/fig dist/fig-Darwin-x86_64
+dist/fig-Darwin-x86_64 --version