Skip to content

Conversation

@JakeQZ
Copy link
Collaborator

@JakeQZ JakeQZ commented Feb 17, 2024

On Windows, the .phive directory contains batch files that in turn invoke the phar installed elsewhere on the system. To be compatible with both Linux and Windows, the file must be invoked directly via the shell, and without the file extension specified.

Fixes #479.

@JakeQZ JakeQZ added bug developer-specific Issues that only affect maintainers, contributors, and people submitting PRs labels Feb 17, 2024
@JakeQZ JakeQZ self-assigned this Feb 17, 2024
@JakeQZ JakeQZ marked this pull request as draft February 17, 2024 18:35
@JakeQZ
Copy link
Collaborator Author

JakeQZ commented Feb 17, 2024

Hmm, this doesn't seem to be working on Linux now. Though it seems to be the same as what works in the Emogrifier project.

On Windows, the `.phive` directory contains batch files that in turn invoke the
phar installed elsewhere on the system.  To be compatible with both Linux and
Windows, the file must be invoked directly via the shell, and without a file
extension specified (when invoked as well as when installed).

Fixes #479.
@JakeQZ JakeQZ force-pushed the bugfix/phive-scripts-windows branch from 7d377bc to 0ca714b Compare February 17, 2024 18:46
@JakeQZ
Copy link
Collaborator Author

JakeQZ commented Feb 17, 2024

Hmm, this doesn't seem to be working on Linux now. Though it seems to be the same as what works in the Emogrifier project.

Ah, seems the phars also need to be installed without a file extension, to be compatible with both OSs.

@JakeQZ JakeQZ marked this pull request as ready for review February 17, 2024 18:48
@oliverklee oliverklee merged commit 848685a into main Feb 17, 2024
@oliverklee oliverklee deleted the bugfix/phive-scripts-windows branch February 17, 2024 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug developer-specific Issues that only affect maintainers, contributors, and people submitting PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Composer scripts invoking PHIVE Phars don't run on Windows

3 participants