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

Add support for Phar builds on Windows #389

Merged
merged 0 commits into from
Mar 13, 2020
Merged

Add support for Phar builds on Windows #389

merged 0 commits into from
Mar 13, 2020

Conversation

owenvoke
Copy link
Member

Thanks to @shadoWalker89 for the initial work on this with v6 of Laravel Zero (#348).

This adds support for building single-file Phar applications on Windows. Tested in Git Bash, PowerShell, and CMD. Linux Subsystem for Windows (which uses the normal ./box binary as expected) does not function correctly when I've tested due to box-project/box#437, but this is due to not being able to change the ulimit on WSL2.

I've enforced using the local box binary by using .\box.bat on Windows. This prevents the use of a globally installed Box instance.

However, note that Box doesn't officially support Windows yet so the actual compilation may fail in some cases.


Preview Windows build output

Preview build on CMD

Preview build on PowerShell Core


Closes #348

Copy link
Member

@nunomaduro nunomaduro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but I can't test this.

owenvoke added a commit that referenced this pull request Mar 13, 2020
Add support for Phar builds on Windows
@owenvoke owenvoke merged commit 0dcacb0 into laravel-zero:7.x Mar 13, 2020
@owenvoke owenvoke deleted the feature/windows-support branch March 13, 2020 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants