Skip to content

Commit

Permalink
Zip generation for Haxelib deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigRazor authored Sep 16, 2021
1 parent e2b41ce commit 78f9e01
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packaging/haxelib.json
Original file line number Diff line number Diff line change
@@ -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": {}
}
8 changes: 8 additions & 0 deletions packaging/haxelib.md
Original file line number Diff line number Diff line change
@@ -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`
5 changes: 5 additions & 0 deletions packaging/make_packaging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions packaging/zip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
cd ../..
zip -r CXXGraph/packaging/CXXGraph-$VERSION-$RELEASE.zip CXXGraph/include/* CXXGraph/packaging/haxelib.json
cd -

0 comments on commit 78f9e01

Please sign in to comment.