Update artifact zipping to exclude parent folder

Changed the zip commands in the auto-release workflow to zip the contents of each artifact directory rather than the directory itself. This ensures the resulting zip files do not include an extra parent folder.
This commit is contained in:
手瓜一十雪 committed 2025-11-13 20:59:31 +08:00
1 parent ef88376a3d
commit 119765d1ea
1 file changed
+5 -5
+5 -5
View File
@@ -159,11 +159,11 @@ jobs:
- name: Zip Artifacts - name: Zip Artifacts
run: | run: |
cd artifacts cd artifacts
[ -d NapCat.Framework ] && zip -qr ../NapCat.Framework.zip -r NapCat.Framework [ -d NapCat.Framework ] && (cd NapCat.Framework && zip -qr ../../NapCat.Framework.zip .)
[ -d NapCat.Shell ] && zip -qr ../NapCat.Shell.zip -r NapCat.Shell [ -d NapCat.Shell ] && (cd NapCat.Shell && zip -qr ../../NapCat.Shell.zip .)
[ -d NapCat.Shell.Windows.Node ] && zip -qr ../NapCat.Shell.Windows.Node.zip -r NapCat.Shell.Windows.Node [ -d NapCat.Shell.Windows.Node ] && (cd NapCat.Shell.Windows.Node && zip -qr ../../NapCat.Shell.Windows.Node.zip .)
cd .. cd ..
- name: Generate release note via OpenRouter - name: Generate release note via OpenRouter
env: env: