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

Postinstall Lifecycle Issue on Windows Platform #634

Closed
Losses opened this issue Jun 12, 2024 · 1 comment
Closed

Postinstall Lifecycle Issue on Windows Platform #634

Losses opened this issue Jun 12, 2024 · 1 comment

Comments

@Losses
Copy link

Losses commented Jun 12, 2024

I am encountering an issue with the postinstall lifecycle on the Windows platform. As we know, Windows does not natively support bash, and the existing scripts have different syntax compared to Unix-based systems. This discrepancy makes it challenging to create a single script that can run seamlessly across all platforms.

To address this, I propose that we consider implementing a design that allows different postinstall scripts to be executed based on the underlying platform. This way, we can ensure that the appropriate script is run for each specific environment, enhancing compatibility and reducing potential errors.

Here are some points to consider:

  1. Platform Detection: Implement a mechanism to detect the operating system or kernel type.
  2. Script Differentiation: Allow users to specify different postinstall scripts for different platforms within the Shards configuration.
  3. Execution Logic: Ensure that the correct script is executed based on the detected platform during the postinstall phase.
@straight-shoota
Copy link
Member

Duplicate of #468

@straight-shoota straight-shoota marked this as a duplicate of #468 Jun 12, 2024
@straight-shoota straight-shoota closed this as not planned Won't fix, can't repro, duplicate, stale Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants