mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-18 10:07:02 +00:00
goxc changes
Reorganize stuff in bin dir to other places, or delete it Only build amd64 binaries to reduce bintray space usage
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
"TasksExclude": [
|
||||
"pkg-build"
|
||||
],
|
||||
"Arch": "amd64",
|
||||
"Os": "darwin freebsd linux windows",
|
||||
"Resources": {
|
||||
"Include": "README*,LICENSE*,bin,etc,themes"
|
||||
"Include": "README*,LICENSE*,inbucket.bat,etc,themes"
|
||||
},
|
||||
"PackageVersion": "20131013",
|
||||
"PrereleaseInfo": "snapshot",
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Compile and package inbucket dist for unix
|
||||
|
||||
if [ "${1}x" = "x" ]; then
|
||||
echo "Usage: $0 <version-label>" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
label="$1"
|
||||
|
||||
# Bail on error
|
||||
set -e
|
||||
|
||||
# For OS X
|
||||
if [ -x /usr/bin/gnutar ]; then
|
||||
tar=/usr/bin/gnutar
|
||||
else
|
||||
tar=tar
|
||||
fi
|
||||
|
||||
# Work directory
|
||||
tmpdir=/tmp/inbucket-dist.$$
|
||||
mkdir -p $tmpdir
|
||||
|
||||
# Figure out our build env/target
|
||||
go env > $tmpdir/env
|
||||
. $tmpdir/env
|
||||
distname="inbucket-${label}-${GOOS}_$GOARCH"
|
||||
distdir="$tmpdir/$distname"
|
||||
|
||||
echo "Building $distname..."
|
||||
mkdir -p $distdir
|
||||
go build -o $distdir/inbucket -a -v github.com/jhillyerd/inbucket
|
||||
|
||||
echo "Copying resources..."
|
||||
cp LICENSE README.md $distdir/
|
||||
cp -r etc $distdir/etc
|
||||
cp -r themes $distdir/themes
|
||||
|
||||
echo "Tarballing..."
|
||||
tarball="$HOME/$distname.tbz2"
|
||||
cd $tmpdir
|
||||
$tar --owner=root --group=0 -cjvf $tarball $distname
|
||||
|
||||
echo "Cleaning up..."
|
||||
if [ "$tmpdir" != "/" ]; then
|
||||
rm -rf $tmpdir
|
||||
fi
|
||||
|
||||
echo "Created $tarball"
|
||||
BIN
bin/dist-win.ps1
BIN
bin/dist-win.ps1
Binary file not shown.
Reference in New Issue
Block a user