diff --git a/packaging/haxelib.json b/packaging/haxelib.json new file mode 100644 index 000000000..5bba270ca --- /dev/null +++ b/packaging/haxelib.json @@ -0,0 +1,12 @@ +{ + "name": "CXXGraph", + "url" : "https://github.com/ZigRazor/CXXGraph", + "license": "GPL", + "tags": ["Algorithm", "Cpp"], + "description": "Header-Only C++ Library for Graph Representation and Algorithms", + "version": "0.1.6", + "classPath": "", + "releasenote": "Release 0.1.6", + "contributors": ["ZigRazor"], + "dependencies": {} + } \ No newline at end of file diff --git a/packaging/haxelib.md b/packaging/haxelib.md new file mode 100644 index 000000000..1c457ee74 --- /dev/null +++ b/packaging/haxelib.md @@ -0,0 +1,8 @@ +# HAXELIB USAGE + +To publish a new package: + +- install Haxelib(if not present) +- create a zip file with `make_packaging.sh` +- modify the `haxelib.json` file to update version and important fields +- submit the zip file with command `sudo haxelib submit CXXGraph[ Version ].zip` diff --git a/packaging/make_packaging.sh b/packaging/make_packaging.sh index 352da26eb..e07a25fe9 100755 --- a/packaging/make_packaging.sh +++ b/packaging/make_packaging.sh @@ -15,6 +15,11 @@ echo "Create Tarballs..." ./tarballs.sh echo "Tarballs Created" +#zip +echo "Create Zip..." +./zip.sh +echo "Zip Created" + #rpm echo "Create RPM..." cd rpm diff --git a/packaging/zip.sh b/packaging/zip.sh new file mode 100755 index 000000000..672d6d15c --- /dev/null +++ b/packaging/zip.sh @@ -0,0 +1,4 @@ +#!/bin/bash +cd ../.. +zip -r CXXGraph/packaging/CXXGraph-$VERSION-$RELEASE.zip CXXGraph/include/* CXXGraph/packaging/haxelib.json +cd - \ No newline at end of file