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

Conversation

chalcolith
Copy link
Member

Previously the tests and benchmark executables were included, which doubled the size of the zip file. This PR removes those files before zipping the release archive.

We do it this way because the Powershell command Compress-Archive cannot add a single file to a directory other than the root directory of the zip file, so we can't specify just bin\ponyc.exe in the list of things to add to the archive; it'll add it to the root directory. Ponyc expects to find its lib and packages directories one directory below where it is.

Fixes #4272

…p files

Previously the tests and benchmark executables were included, which doubled the size of the zip file.  This PR removes those files before zipping the release archive.

We do it this way because the Powershell command `Compress-Archive` cannot add a single file to a directory other than the root directory of the zip file, so we can't specify just `bin\ponyc.exe` in the list of things to add to the archive; it'll add it to the root directory.  Ponyc expects to find its lib and packages directories one directory below where it is.

Fixes #4272
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Dec 9, 2023
@chalcolith chalcolith requested a review from a team December 9, 2023 19:58
@SeanTAllen SeanTAllen merged commit 4e1d83b into main Dec 9, 2023
24 checks passed
@SeanTAllen SeanTAllen deleted the fix_4272 branch December 9, 2023 22:11
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows releases contain unneeded files
3 participants