chore: allow packaging before final icon

This commit is contained in:
Marek Miklewicz
2026-06-02 19:25:52 +02:00
parent 6f989af278
commit 6bd4a5fd74
2 changed files with 2 additions and 7 deletions
-5
View File
@@ -6,11 +6,6 @@ if [ -z "$VERSION" ]; then
echo "Cannot determine version from plugin.conf" >&2 echo "Cannot determine version from plugin.conf" >&2
exit 1 exit 1
fi fi
if [ ! -f images/user_icon.svg ]; then
echo "Missing user-supplied icon: src/images/user_icon.svg" >&2
exit 1
fi
ROOT_DIR="$(cd .. && pwd)" ROOT_DIR="$(cd .. && pwd)"
mkdir -p "$ROOT_DIR/archives/$VERSION" mkdir -p "$ROOT_DIR/archives/$VERSION"
tar -czf "$ROOT_DIR/archives/$VERSION/global-autoresponder.tar.gz" \ tar -czf "$ROOT_DIR/archives/$VERSION/global-autoresponder.tar.gz" \
+2 -2
View File
@@ -1,9 +1,9 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
test('packing guidelines exclude docs and require manual icon', function (): void { test('packing guidelines exclude docs and allow later manual icon', function (): void {
$packing = file_get_contents(dirname(__DIR__, 2) . '/PACKING.md') ?: ''; $packing = file_get_contents(dirname(__DIR__, 2) . '/PACKING.md') ?: '';
assert_contains('docs/dokumentacja.html', $packing); assert_contains('docs/dokumentacja.html', $packing);
assert_contains('must not contain `docs/`', $packing); assert_contains('must not contain `docs/`', $packing);
assert_contains('src/images/user_icon.svg', $packing); assert_contains('may be added later at `src/images/user_icon.svg`', $packing);
}); });