diff --git a/.gitignore b/.gitignore index 2e4e9221..4d2372ba 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ build luv.so luv.dll luajit.exe +luv-* diff --git a/Makefile b/Makefile index 8d7e85a9..2eab37e7 100644 --- a/Makefile +++ b/Makefile @@ -26,9 +26,12 @@ reset: git clean -f -d && \ git checkout . -publish-src: reset - tar -czvf luv-src.tar.gz \ - --exclude 'luv-src.tar.gz' --exclude '.git*' --exclude build . && \ - github-release upload --user luvit --repo luv --tag ${LUV_TAG} \ - --file luv-src.tar.gz --name luv-src.tar.gz +publish-luarocks: reset + rm -rf luv-${LUV_TAG} + mkdir -p luv-${LUV_TAG}/deps + cp -r src CMakeLists.txt LICENSE.txt README.md docs.md luv-${LUV_TAG}/ + cp -r deps/libuv deps/uv.cmake luv-${LUV_TAG}/deps/ + tar -czvf luv-${LUV_TAG}.tar.gz luv-${LUV_TAG} + github-release upload --user luvit --repo luv --tag ${LUV_TAG} \ + --file luv-${LUV_TAG}.tar.gz --name luv-${LUV_TAG}.tar.gz diff --git a/luv-1.4.2-1.rockspec b/luv-1.4.2-2.rockspec similarity index 86% rename from luv-1.4.2-1.rockspec rename to luv-1.4.2-2.rockspec index 1a344b03..eb5d6be3 100644 --- a/luv-1.4.2-1.rockspec +++ b/luv-1.4.2-2.rockspec @@ -1,8 +1,7 @@ package = "luv" -version = "1.4.2-1" +version = "1.4.2-2" source = { - url = 'git://github.com/luvit/luv', - tag = 'v1.4.2', + url = 'https://github.com/luvit/luv/releases/download/1.4.2-2/luv-1.4.2-2.tar.gz', } description = {