Skip to content

Commit 67071e6

Browse files
committed
Try to fix Windows archive
1 parent 414cf47 commit 67071e6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,8 @@ jobs:
7777
cd Flutter/json_to_dart
7878
if [ "${{ matrix.platform }}" = "windows" ]; then
7979
flutter build windows --release
80-
ZIP_DIR=$(dirname "${{ matrix.build_target }}")
81-
PARENT_OF_RUNNER=$(dirname "$ZIP_DIR")
82-
RELEASE_DIR="${PARENT_OF_RUNNER}\\Release"
83-
pwsh -command "Compress-Archive -Path '${RELEASE_DIR}\*' -DestinationPath '${{ matrix.artifact }}'"
80+
ZIP_DIR="${{ matrix.build_target }}"
81+
pwsh -command "Compress-Archive -Path '${ZIP_DIR}\*' -DestinationPath '${{ matrix.artifact }}'"
8482
elif [ "${{ matrix.platform }}" = "macos" ]; then
8583
flutter build macos --release
8684
APP_PARENT_DIR=$(dirname "${{ matrix.build_target }}")

0 commit comments

Comments
 (0)