cd /Users/igorrubas/DDev/wporg-a360-panorama-hero

svn update

rm -rf trunk/*

rsync -av \
  --exclude='.git' \
  --exclude='.svn' \
  --exclude='.DS_Store' \
  --exclude='__MACOSX' \
  /Users/igorrubas/DDev/a360/wp-content/plugins/a360-panorama-hero/ \
  trunk/

rsync -av \
  /Users/igorrubas/DDev/a360/wp-content/plugins/a360-panorama-hero/assets/banner-*.png \
  /Users/igorrubas/DDev/a360/wp-content/plugins/a360-panorama-hero/assets/icon-*.png \
  /Users/igorrubas/DDev/a360/wp-content/plugins/a360-panorama-hero/assets/screenshot-*.png \
  assets/

svn add . --force

svn status | grep '^!' | awk '{print $2}' | xargs -r svn delete

svn status

jeśli status wygląda OK, commit trunk + assets:

svn commit -m "Release 2.1.9"
svn copy \
  https://plugins.svn.wordpress.org/a360-panorama-hero/trunk \
  https://plugins.svn.wordpress.org/a360-panorama-hero/tags/2.1.9 \
  -m "Tagging version 2.1.9"

================== 

cd ~/DDev/wporg-a360-panorama-hero

svn update

rm -rf trunk/*

rsync -av \
  --exclude='.git' \
  --exclude='.DS_Store' \
  /Users/igorrubas/DDev/a360/wp-content/plugins/a360-panorama-hero/ \
  trunk/

svn add . --force

svn status | grep '^!' | awk '{print $2}' | xargs svn delete

svn status

svn commit -m "Release 1.1.9"

svn copy \
  https://plugins.svn.wordpress.org/a360-panorama-hero/trunk \
  https://plugins.svn.wordpress.org/a360-panorama-hero/tags/1.1.9 \
  -m "Tagging version 1.1.9"

  =========================

1. Zwiększ Version w a360-panorama-hero.php X.Y.Z
2. Zwiększ Stable tag w readme.txt X.Y.Z
3. rsync plugin -> trunk
4. cp -R trunk tags/X.Y.Z
5. svn add tags/X.Y.Z
6. svn status
7. svn commit -m "Release X.Y.Z"



cd ~/DDev/wporg-a360-panorama-hero

rm -rf trunk/*

rsync -av \
--exclude='.git' \
--exclude='.DS_Store' \
/Users/igorrubas/DDev/a360/wp-content/plugins/a360-panorama-hero/ \
trunk/

svn add . --force

svn status | grep '^!' | awk '{print $2}' | xargs svn delete

svn commit -m "Release 1.1.5"

svn copy \
https://plugins.svn.wordpress.org/a360-panorama-hero/trunk \
https://plugins.svn.wordpress.org/a360-panorama-hero/tags/1.1.5 \
-m "Tagging version 1.1.5"


Jeżeli zmieniłeś:

✅ banner

banner-1544x500.png
banner-772x250.png

✅ screenshoty

screenshot-1.png
screenshot-2.png
screenshot-3.png
...

to musisz je skopiować do:

~/DDev/wporg-a360-panorama-hero/assets/

a następnie:

cd ~/DDev/wporg-a360-panorama-hero

svn status
svn add assets/* --force
svn commit -m "Update banner and screenshots"

======= ALL ===========
A360 Insights Release Checklist

1. Update versions
- a360-panorama-hero.php:
  - Plugin header: Version: X.Y.Z
  - A360_INSIGHTS_VERSION = X.Y.Z
- readme.txt:
  - Stable tag: X.Y.Z
  - Changelog entry for X.Y.Z

2. Verify locally
- Check plugin loads in WP admin
- Check dashboard page
- Check post statistics modal
- Check dashboard widget
- Run PHP lint if available:
  ddev exec php -l wp-content/plugins/a360-panorama-hero/a360-panorama-hero.php
  ddev exec php -l wp-content/plugins/a360-panorama-hero/includes/class-a360-panorama-hero-admin.php
  ddev exec php -l wp-content/plugins/a360-panorama-hero/includes/class-a360-panorama-hero-db.php
  ddev exec php -l wp-content/plugins/a360-panorama-hero/includes/class-a360-panorama-hero-tracker.php

3. Prepare SVN trunk
cd ~/DDev/wporg-a360-panorama-hero
rm -rf trunk/*

rsync -av \
  --exclude='.git' \
  --exclude='.DS_Store' \
  --exclude='__MACOSX' \
  /Users/igorrubas/DDev/a360/wp-content/plugins/a360-panorama-hero/ \
  trunk/

4. Update SVN files
svn add trunk --force
svn status | grep '^!' | awk '{print $2}' | while read file; do svn delete "$file"; done
svn status

5. Commit trunk
svn commit -m "Release X.Y.Z"

6. Create tag
svn copy \
  https://plugins.svn.wordpress.org/a360-panorama-hero/trunk \
  https://plugins.svn.wordpress.org/a360-panorama-hero/tags/X.Y.Z \
  -m "Tagging version X.Y.Z"

7. Update WP.org assets if changed
cp /Users/igorrubas/DDev/a360/wp-content/plugins/a360-panorama-hero/assets/banner-1544x500.png assets/
cp /Users/igorrubas/DDev/a360/wp-content/plugins/a360-panorama-hero/assets/banner-772x250.png assets/
cp /Users/igorrubas/DDev/a360/wp-content/plugins/a360-panorama-hero/assets/screenshot-*.png assets/

svn add assets --force
svn status
svn commit -m "Update assets for X.Y.Z"

8. Final checks
- WP.org shows version X.Y.Z
- Downloaded ZIP does not contain .git, .DS_Store, __MACOSX
- Changelog displays correct version
- Banner and screenshots display correctly
- Plugin installs/activates from WP.org ZIP




git add .
git commit -m "opis commita"
git push
