9 lines
475 B
Shell
Executable file
9 lines
475 B
Shell
Executable file
#!/bin/sh
|
|
# The WordPress plugin as a zip to upload (Extensions > Add > Upload): the kit copied in, so the plugin folder stands alone.
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
cp ../jumphp-embed.php jumphp-embed/jumphp-embed-kit.php
|
|
rm -f jumphp-embed.zip
|
|
(command -v zip >/dev/null && zip -qr jumphp-embed.zip jumphp-embed) || python3 -c "import shutil; shutil.make_archive('jumphp-embed', 'zip', '.', 'jumphp-embed')"
|
|
rm jumphp-embed/jumphp-embed-kit.php
|
|
echo "$(pwd)/jumphp-embed.zip"
|