Skip to content
Snippets Groups Projects
Commit cbd79cbc authored by Matthieu Lamalle's avatar Matthieu Lamalle
Browse files

update de build.sh

parent 01565a75
No related branches found
No related tags found
No related merge requests found
Pipeline #421 failed
......@@ -9,37 +9,26 @@ BINNAME=zephir-client
if [ ! -d ${BUILD_DIR} ]
then
mkdir -p ${BUILD_DIR}
fi
fi
cd ${BUILD_DIR}
# retrieve dependencies
if [ -d tiramisu-cmdline-parser ]
then
git pull
else
git clone https://framagit.org/tiramisu/tiramisu-cmdline-parser.git
cd tiramisu-cmdline-parser
git checkout b67a1ec430ce8b5d3d285050fc8d2e99bbbb1d43
cd ..
fi
cp -Rpv tiramisu-cmdline-parser/tiramisu_cmdline_parser ${ZDIR}
if [ -d tiramisu-json-api ]
then
git pull
else
git clone https://framagit.org/tiramisu/tiramisu-json-api.git
cd tiramisu-json-api
git checkout 9da87804c288355757cbf2e40f4a6fee2fd74234
cd ..
fi
cp -Rpv tiramisu-json-api/tiramisu_json_api ${ZDIR}
git clone https://framagit.org/tiramisu/tiramisu-json-api.git
cd tiramisu-json-api
git checkout 9da87804c288355757cbf2e40f4a6fee2fd74234
python3 setup.py install
cd ..
rm -rf tiramisu-json-api
git clone https://framagit.org/tiramisu/tiramisu-cmdline-parser.git
cd tiramisu-cmdline-parser
git checkout b67a1ec4
python3 setup.py install
cd ..
rm -rf tiramisu-cmdline-parser
cd ${ZDIR}
PYTHONOPTIMIZE=1
pyinstaller ${BINNAME} --clean --onefile --name zcli
#if [[ ${?} -eq 0 ]]
#then
# rm -rf ${ZDIR}/tiramisu_json_api
# rm -rf ${ZDIR}/tiramisu_cmdline_parser.py
#fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment