Skip to content

Commit d91c458

Browse files
committed
Merge pull request #509 from bfirsh/smarter-binary-urls
Use uname to generate binary download URL
2 parents 475a7e1 + f4b5995 commit d91c458

4 files changed

Lines changed: 8 additions & 10 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ The easiest way to do this is to use the `--signoff` flag when committing. E.g.:
8686

8787
3. Build Linux version on any Docker host with `script/build-linux` and attach to release
8888

89-
4. Build OS X version on Mountain Lion with `script/build-osx` and attach to release
89+
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`.
9090

9191
5. Publish GitHub release, creating tag
9292

docs/install.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,11 @@ First, install Docker version 1.0 or greater. If you're on OS X, you can use [do
1414

1515
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.
1616

17-
Next, install Fig. On OS X:
17+
Next, install Fig:
1818

19-
curl -L https://github.com/docker/fig/releases/download/0.5.2/darwin > /usr/local/bin/fig; chmod +x /usr/local/bin/fig
19+
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
2020

21-
On 64-bit Linux:
22-
23-
curl -L https://github.com/docker/fig/releases/download/0.5.2/linux > /usr/local/bin/fig; chmod +x /usr/local/bin/fig
24-
25-
Fig is also available as a Python package if you're on another platform (or if you prefer that sort of thing):
21+
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):
2622

2723
$ sudo pip install -U fig
2824

script/build-linux

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ mkdir -p `pwd`/dist
44
chmod 777 `pwd`/dist
55
docker build -t fig .
66
docker run -u user -v `pwd`/dist:/code/dist fig pyinstaller -F bin/fig
7-
docker run -u user -v `pwd`/dist:/code/dist fig dist/fig --version
7+
mv dist/fig dist/fig-Linux-x86_64
8+
docker run -u user -v `pwd`/dist:/code/dist fig dist/fig-Linux-x86_64 --version

script/build-osx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ venv/bin/pip install -r requirements.txt
66
venv/bin/pip install -r requirements-dev.txt
77
venv/bin/pip install .
88
venv/bin/pyinstaller -F bin/fig
9-
dist/fig --version
9+
mv dist/fig dist/fig-Darwin-x86_64
10+
dist/fig-Darwin-x86_64 --version

0 commit comments

Comments
 (0)