From ac1629f53be20bc51aa13b8e12ac20c052aec9bb Mon Sep 17 00:00:00 2001 From: Minasuki Hikimuna Date: Thu, 5 Sep 2024 07:00:04 +0300 Subject: [PATCH] Another attempt with .manifestignore --- build_site.sh | 11 ++++++++++- plugins/CompleteTheStash/.manifestignore | 6 ++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 plugins/CompleteTheStash/.manifestignore diff --git a/build_site.sh b/build_site.sh index d923e02..9b0154a 100755 --- a/build_site.sh +++ b/build_site.sh @@ -40,7 +40,16 @@ buildPlugin() zipfile=$(realpath "$outdir/$plugin_id.zip") pushd "$dir" > /dev/null - zip -r "$zipfile" . > /dev/null + + # Check for .manifestignore file + if [ -f ".manifestignore" ]; then + # Use .manifestignore to exclude files + zip -r "$zipfile" . -x@.manifestignore > /dev/null + else + # If .manifestignore doesn't exist, include all files + zip -r "$zipfile" . > /dev/null + fi + popd > /dev/null name=$(grep "^name:" "$f" | head -n 1 | cut -d' ' -f2- | sed -e 's/\r//' -e 's/^"\(.*\)"$/\1/') diff --git a/plugins/CompleteTheStash/.manifestignore b/plugins/CompleteTheStash/.manifestignore new file mode 100644 index 0000000..9535a56 --- /dev/null +++ b/plugins/CompleteTheStash/.manifestignore @@ -0,0 +1,6 @@ +.template-stash\local-config.txt +.template-stash\missing-stashdb-config.txt +.template-stash\missing-tpdb-config.txt +.gitignore +fakeInput.py +test_stash_e2e.py \ No newline at end of file