Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only include ponyc.exe in the bin directory of Windows release zip files #4474

Merged
merged 1 commit into from
Dec 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions make.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,8 @@ switch ($Command.ToLower())
$package = "ponyc-x86-64-pc-windows-msvc.zip"
Write-Output "Creating $buildDir\..\$package"

# Remove unneeded files; we do it this way because Compress-Archive cannot add a single file to anything other than the root directory
Get-ChildItem -File -Path "$Prefix\bin\*" -Exclude ponyc.exe | Remove-Item
Compress-Archive -Path "$Prefix\bin", "$Prefix\lib", "$Prefix\packages", "$Prefix\examples" -DestinationPath "$buildDir\..\$package" -Force
break
}
Expand Down
Loading