Skip to content

Commit

Permalink
add package script -- move to travis uploads later
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Hoffman committed May 13, 2016
1 parent fec2c9c commit f424469
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Cargo.lock
target
*.zip
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ A [liquid template](http://liquidmarkup.org/) command line tool.

## Compile
To compile for ubuntu/amazon linux:

```
docker run -v `pwd`:/source -ti schickling/rust cargo build --release
% docker run --rm -v `pwd`:/source -ti schickling/rust cargo build --release
[snip]
% file target/release/limpet
target/release/limpet: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, not stripped
```
The binary will be `target/release/limpet`

The binary will be `target/release/limpet` and is currently under around 2MB

TODO: publish via Travis-CI
17 changes: 17 additions & 0 deletions package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

# finish this upload part later...
#if [ -z ${BINTRAY_API_KEY} ]; then
# echo "BINTRAY_API_KEY environment not set."
# exit 1
#fi

if [ -z
VERSION=`grep '^version' Cargo.toml | cut -d '"' -f 2`
echo "Packaging version ${VERSION}..."
cargo clean
docker run --rm -v `pwd`:/source -ti schickling/rust cargo build --release
zip -j limpet_${VERSION}_linux_amd64.zip target/release/limpet

#curl -T limpet_${VERSION}_linux_amd64.zip -ubacoboy:${BINTRAY_API_KEY} -H "X-Bintray-Package:limpet" -H "X-Bintray-Version:${VERSION}" https://api.bintray.com/content/bacoboy/limpet/limpet

0 comments on commit f424469

Please sign in to comment.