Improve packages.json and add release script

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
This commit is contained in:
Hector Sanjuan 2017-01-25 13:09:36 +01:00
parent b388a45e92
commit 9eb88f892d
3 changed files with 18 additions and 2 deletions

0
.gx/lastpubver Normal file
View File

View File

@ -1,5 +1,5 @@
{ {
"author": "hector", "author": "hsanjuan",
"bugs": { "bugs": {
"url": "https://github.com/ipfs/ipfs-cluster" "url": "https://github.com/ipfs/ipfs-cluster"
}, },
@ -58,7 +58,7 @@
], ],
"gxVersion": "0.10.0", "gxVersion": "0.10.0",
"language": "go", "language": "go",
"license": "", "license": "MIT",
"name": "ipfs-cluster", "name": "ipfs-cluster",
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"", "releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "0.0.0" "version": "0.0.0"

16
release.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
# Updates the Version variables, commits, and "gx release" the package
version="$1"
if [ -z $version ]; then
echo "Need a version!"
exit 1
fi
git tag v$version
sed -i "s/const Version.*$/const Version = \"$version\"/" version.go
sed -i "s/const Version.*$/const Version = \"$version\"/" ipfs-cluster-ctl/main.go
git commit -a -m "Release $version"
gx release $version