Skip to content

Commit b446480

Browse files
committed
add missing script to create plugin zip
1 parent a6b8bf0 commit b446480

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
*.sh
1+
*.zip

.rsync_exclude

Lines changed: 0 additions & 5 deletions
This file was deleted.

create_plugin_zip.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
3+
set -e
4+
set -v
5+
6+
version=$(jq -r ".version" < composer.json)
7+
root_folder="BuyButtonStateSynchronizer"
8+
filename="codebarista_buy_button_state_synchronizer_$version.zip"
9+
out_file="$PWD/$filename"
10+
11+
rm -rf "/tmp/$root_folder"
12+
mkdir -p "/tmp/$root_folder"
13+
cp -r . "/tmp/$root_folder/"
14+
15+
rm -f "$out_file"
16+
17+
( cd /tmp && zip -r "$out_file" "$root_folder" \
18+
-x "$root_folder/.*" \
19+
-x "$root_folder/*.xcf" \
20+
-x "$root_folder/bin*" \
21+
-x "$root_folder/*.sh" \
22+
-x "$root_folder/*.zip" \
23+
-x "$root_folder/*.md")

0 commit comments

Comments
 (0)