diff --git a/Makefile b/Makefile index f9550d6..d0091fa 100644 --- a/Makefile +++ b/Makefile @@ -2,20 +2,14 @@ plugin_id=`cat plugin.json | python -c "import sys, json; print(str(json.load(sys.stdin)['id']).replace('/',''))"` plugin_version=`cat plugin.json | python -c "import sys, json; print(str(json.load(sys.stdin)['version']).replace('/',''))"` archive_file_name="dss-plugin-${plugin_id}-${plugin_version}.zip" -remote_url=`git config --get remote.origin.url` -last_commit_id=`git rev-parse HEAD` - plugin: @echo "[START] Archiving plugin to dist/ folder..." @cat plugin.json | json_pp > /dev/null @rm -rf dist @mkdir dist - @echo "{\"remote_url\":\"${remote_url}\",\"last_commit_id\":\"${last_commit_id}\"}" > release_info.json @git archive -v -9 --format zip -o dist/${archive_file_name} HEAD @zip --delete dist/${archive_file_name} "tests/*" - @zip -u dist/${archive_file_name} release_info.json - @rm release_info.json @echo "[SUCCESS] Archiving plugin to dist/ folder: Done!" unit-tests: