mirror of
https://github.com/zyedidia/micro
synced 2024-11-05 17:41:24 +00:00
Provide vendored tarball and zip with future releases
This commit is contained in:
parent
5311a35f5a
commit
92e44aa6af
5 changed files with 71 additions and 0 deletions
|
@ -6,6 +6,14 @@ mkdir -p micro-$1
|
|||
cp LICENSE micro-$1
|
||||
cp README.md micro-$1
|
||||
|
||||
# Source tar
|
||||
|
||||
cd tools
|
||||
./vendor-src.sh micro-$1-src
|
||||
cd ..
|
||||
mv micro-$1-src.tar.gz binaries
|
||||
mv micro-$1-src.zip binaries
|
||||
|
||||
HASH="$(git rev-parse --short HEAD)"
|
||||
VERSION="$(go run tools/build-version.go)"
|
||||
DATE="$(go run tools/build-date.go)"
|
||||
|
@ -73,3 +81,4 @@ zip -r -q -T micro-$1-win32.zip micro-$1
|
|||
mv micro-$1-win32.zip binaries
|
||||
|
||||
rm -rf micro-$1
|
||||
|
||||
|
|
|
@ -118,3 +118,19 @@ github-release upload \
|
|||
--tag nightly \
|
||||
--name "micro-$1-win32.zip" \
|
||||
--file binaries/micro-$1-win32.zip
|
||||
|
||||
echo "Uploading vendored tarball"
|
||||
github-release upload \
|
||||
--user zyedidia \
|
||||
--repo micro \
|
||||
--tag $tag \
|
||||
--name "micro-$1-src.tar.gz" \
|
||||
--file binaries/micro-$1-src.tar.gz
|
||||
|
||||
echo "Uploading vendored zip"
|
||||
github-release upload \
|
||||
--user zyedidia \
|
||||
--repo micro \
|
||||
--tag $tag \
|
||||
--name "micro-$1-src.zip" \
|
||||
--file binaries/micro-$1-src.zip
|
||||
|
|
|
@ -115,3 +115,19 @@ github-release upload \
|
|||
--tag $tag \
|
||||
--name "micro-$1-win32.zip" \
|
||||
--file binaries/micro-$1-win32.zip
|
||||
|
||||
echo "Uploading vendored tarball"
|
||||
github-release upload \
|
||||
--user zyedidia \
|
||||
--repo micro \
|
||||
--tag $tag \
|
||||
--name "micro-$1-src.tar.gz" \
|
||||
--file binaries/micro-$1-src.tar.gz
|
||||
|
||||
echo "Uploading vendored zip"
|
||||
github-release upload \
|
||||
--user zyedidia \
|
||||
--repo micro \
|
||||
--tag $tag \
|
||||
--name "micro-$1-src.zip" \
|
||||
--file binaries/micro-$1-src.zip
|
||||
|
|
|
@ -115,3 +115,19 @@ github-release upload \
|
|||
--name "micro-$1-win32.zip" \
|
||||
--file binaries/micro-$1-win32.zip
|
||||
|
||||
echo "Uploading vendored tarball"
|
||||
github-release upload \
|
||||
--user zyedidia \
|
||||
--repo micro \
|
||||
--tag $tag \
|
||||
--name "micro-$1-src.tar.gz" \
|
||||
--file binaries/micro-$1-src.tar.gz
|
||||
|
||||
echo "Uploading vendored zip"
|
||||
|
||||
github-release upload \
|
||||
--user zyedidia \
|
||||
--repo micro \
|
||||
--tag $tag \
|
||||
--name "micro-$1-src.zip" \
|
||||
--file binaries/micro-$1-src.zip
|
||||
|
|
14
tools/vendor-src.sh
Executable file
14
tools/vendor-src.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
cd ../cmd/micro
|
||||
|
||||
govendor init
|
||||
govendor add +e
|
||||
|
||||
cd ../../..
|
||||
|
||||
tar czf "$1".tar.gz micro
|
||||
zip -r "$1".zip micro
|
||||
mv "$1".tar.gz micro
|
||||
mv "$1".zip micro
|
||||
|
||||
cd micro/cmd/micro
|
||||
rm -rf vendor
|
Loading…
Reference in a new issue