Skip to content

Commit 51fe39d

Browse files
committed
Fix tar command to include files in archive correctly
1 parent 5debb0d commit 51fe39d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,9 @@ jobs:
7070
run: |
7171
VERSION=${{ steps.package_version.outputs.version }}
7272
echo "Creating aarch64 .tar.gz archive..."
73-
# -C 参数可以让我们在指定的目录中执行压缩,避免在归档中包含多余的父目录
74-
tar -czf "MessAuto_${VERSION}_aarch64.app.tar.gz" -C ./target/release/MessAuto.app
73+
tar -czf "MessAuto_${VERSION}_aarch64.app.tar.gz" -C ./target/release/MessAuto.app .
7574
echo "Creating x86_64 .tar.gz archive..."
76-
tar -czf "MessAuto_${VERSION}_x64.app.tar.gz" -C ./target/x86_64-apple-darwin/release/MessAuto.app
75+
tar -czf "MessAuto_${VERSION}_x64.app.tar.gz" -C ./target/x86_64-apple-darwin/release/MessAuto.app .
7776
7877
- name: Sign Archives for Updater
7978
run: |

0 commit comments

Comments
 (0)