diff --git a/.gitignore b/.gitignore index a000f4e..7bed497 100644 --- a/.gitignore +++ b/.gitignore @@ -7,5 +7,6 @@ tests/messages tests/debuglog test.log gadgets/ +package/ *.pyc *.dSYM diff --git a/make_package b/make_package new file mode 100755 index 0000000..8d19a4e --- /dev/null +++ b/make_package @@ -0,0 +1,30 @@ +#!/usr/bin/env bash + +OS=$1 +shift + +VERSION=$1 +shift + +ROOT=$(pwd) +PACK=${ROOT}/package/${OS} + +pushd ${PACK} + mkdir -p vimspector/opt + mkdir -p vimspector/start + pushd vimspector/start + for d in autoload plugin python3 vendor doc; do + if [[ -d ${ROOT}/$d ]]; then + cp -r ${ROOT}/$d . + fi + done + mkdir -p gadgets + pushd gadgets + cp ${ROOT}/gadgets/.gadgets.json . + cp -r ${ROOT}/gadgets/${OS} . + popd + popd +popd + +cd ${ROOT}/package +tar zcvf ${OS}-${VERSION}.tar.gz ${OS}/