diff --git a/apps/web/app/plugin/page-client.tsx b/apps/web/app/plugin/page-client.tsx index 2797e09..5c15eb4 100644 --- a/apps/web/app/plugin/page-client.tsx +++ b/apps/web/app/plugin/page-client.tsx @@ -379,7 +379,7 @@ export function PluginPageClient() { transition={{ delay: i * 0.05 }} className="rounded-xl border border-border bg-text/2 overflow-hidden flex flex-col" > -
+
{HAS_SCREENSHOT[shot.id] ? ( // eslint-disable-next-line @next/next/no-img-element /dev/null + echo " committed version bump" +fi + +# ── Build + package ────────────────────────────────────────── +echo "› Building plugin…" +bun run build >/dev/null 2>&1 + +echo "› Packaging ZIP…" +./scripts/build-zip.sh --no-build >/dev/null + +ZIP_NAME="plugin-v${VERSION}.zip" +ZIP_PATH="releases/${ZIP_NAME}" + +if [[ ! -f "$ZIP_PATH" ]]; then + echo "✗ ZIP not found at $ZIP_PATH" >&2 + exit 1 +fi + +echo " $(du -h "$ZIP_PATH" | cut -f1) → $ZIP_PATH" + +# ── Git tag ────────────────────────────────────────────────── +TAG="v${VERSION}" +if git rev-parse "$TAG" >/dev/null 2>&1; then + echo "› Tag $TAG already exists (reusing)" +else + echo "› Creating tag $TAG" + git tag "$TAG" + git push origin "$TAG" >/dev/null 2>&1 +fi + +# ── Release notes ──────────────────────────────────────────── +NOTES_FILE="$(mktemp -t dv-release-notes)" +trap 'rm -f "$NOTES_FILE"' EXIT + +cat > "$NOTES_FILE" </dev/null 2>&1; then + echo "› Release $TAG exists — updating asset + notes" + gh release upload "$TAG" "$ZIP_PATH" --clobber >/dev/null + gh release edit "$TAG" --title "DeckyVault Plugin v${VERSION}" --notes-file "$NOTES_FILE" >/dev/null +else + echo "› Creating GitHub release $TAG…" + gh release create "${RELEASE_ARGS[@]}" +fi + +echo +echo "✓ Released v${VERSION}" +echo " Release: https://github.com/AdrianBonpin/deckyvault/releases/tag/${TAG}" +echo " ZIP URL: https://github.com/AdrianBonpin/deckyvault/releases/download/${TAG}/${ZIP_NAME}" +echo +echo "Use the ZIP URL above with Decky's 'Install Plugin from URL'." \ No newline at end of file