Commit 9d91053d authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

update make_package (simple wheel packaging)

parent 02afce9f
...@@ -18,15 +18,11 @@ CURPWD=$(pwd) ...@@ -18,15 +18,11 @@ CURPWD=$(pwd)
cd "$(dirname "$0")" cd "$(dirname "$0")"
ROOTPATH=$(pwd) ROOTPATH=$(pwd)
os=$1
./get_nwjs.sh $os
if [ $? -ne 0 ]; then
exit 1
fi
ID=agkyra-$(date +%s) ID=agkyra-$(date +%s)
TMPDIR=/tmp/$ID BUILDDIR=$CURPWD/build/$ID
TMPAGKYRA=$TMPDIR/agkyra echo building under $BUILDDIR
DISTDIR=$CURPWD/dist
TMPAGKYRA=$BUILDDIR/agkyra
mkdir -p $TMPAGKYRA mkdir -p $TMPAGKYRA
WHEELHOUSE=$TMPAGKYRA/wheelhouse WHEELHOUSE=$TMPAGKYRA/wheelhouse
...@@ -40,15 +36,8 @@ for i in *; do unzip $i -d $TMPAGKYRA/lib; done ...@@ -40,15 +36,8 @@ for i in *; do unzip $i -d $TMPAGKYRA/lib; done
cd $TMPAGKYRA cd $TMPAGKYRA
rm -r $WHEELHOUSE rm -r $WHEELHOUSE
cp $ROOTPATH/COPYING $TMPAGKYRA
cp $ROOTPATH/README.md $TMPAGKYRA
cp $ROOTPATH/agkyra/scripts/agkyra $TMPAGKYRA/agkyra cp $ROOTPATH/agkyra/scripts/agkyra $TMPAGKYRA/agkyra
cp $ROOTPATH/agkyra/scripts/cli.py $TMPAGKYRA/agkyra-cli rm -r $DISTDIR/agkyra
cd $TMPDIR mv $TMPAGKYRA $DISTDIR
ARCHIVENAME=$CURPWD/agkyra-snapshot-${os} echo built in $DISTDIR/agkyra
if [[ "$os" =~ ^(linux64|linux32)$ ]]; then
tar czf ${ARCHIVENAME}.tar.gz agkyra
else
zip -r ${ARCHIVENAME}.zip agkyra
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment