Skip to content

Commit

Permalink
fix windows script
Browse files Browse the repository at this point in the history
  • Loading branch information
h-akatsuki committed Aug 26, 2024
1 parent ba48448 commit cd0d2ef
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/windows-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,18 @@ jobs:
- name: Create Release ZIP
run: |
mkdir release
copy build\windows\x64\runner\Release\* release\
copy updater\target\release\updater.exe release\
copy updater\updater.bat release\
Compress-Archive -Path release\* -DestinationPath ${{ env.release_file_name }}-windows.zip
$releaseDir = "release"
New-Item -ItemType Directory -Force -Path $releaseDir
# Copy Flutter build output with folder structure
Copy-Item -Path "build\windows\x64\runner\Release\*" -Destination $releaseDir -Recurse
# Copy updater files
Copy-Item -Path "updater\target\release\updater.exe" -Destination $releaseDir
Copy-Item -Path "updater\updater.bat" -Destination $releaseDir
# Create ZIP file
Compress-Archive -Path "$releaseDir\*" -DestinationPath "${{ env.release_file_name }}-windows.zip"
- name: Upload ZIP
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit cd0d2ef

Please sign in to comment.