发布

  • [OPIK-2175] Add Windows PowerShell version of dev-runner script (#3533)

    frostbyte_neo 发布于 2025-10-03 12:42:58 +00:00

    • [OPIK-2175] Add Windows PowerShell version of dev-runner script

    • Revision 2: Fix ORIGINAL_COMMAND reconstruction in dev-runner.ps1

    • Revision 3: Fix Debug parameter conflict by renaming to DebugMode

    • Revision 5: Fix parameter handling to support --help interface like opik.ps1

    • Revision 6: Fix temp directory handling for cross-platform compatibility

    • Revision 7: Fix opik.ps1 invocation to use pwsh -File for proper context

    • Fix opik.ps1 cross-platform home directory handling for config file

    • Revision 8: Fix Maven command to use argument array instead of Invoke-Expression

    • Revision 9: Fix process start to use Start-Process instead of event handlers

    • Revision 10: Fix log redirection and PID file null checks

    • Revision 11: Add null checks for PID content in Stop-Backend and Stop-Frontend

    • Revision 12: Fix shell command escaping and environment variable passing

    • Revision 13: Use exec to replace shell with java/npm process for correct PID tracking

    • Revision 14: Fix exec syntax - environment variables must come before exec

    • Revision 15: Use nohup with background & instead of exec to properly capture PID

    • Revision 16: Use native PowerShell Start-Process instead of nohup for cross-platform compatibility

    • Revision 17: Use pure PowerShell with graceful Get-CimInstance fallback for cross-platform support

    • Revision 18: Fix variable name conflict - rename $pid to $processId

    • Revision 19: Fix orphaned process cleanup with cross-platform approach

    • Revision 20: Simplify frontend cleanup to pure PowerShell commands

    • Revision 21: Fix Windows compatibility - use forward slashes, cross-platform temp path etc.

    • Revision 22: Fix home directory fallback to use PowerShell $HOME automatic variable

    • Revision 23: fix children process kill

    • Revision 24: Replace Unix-style $HOME with cross-platform ~ in help messages

    • Addressed PR comments

    • Addressed PR comments 2

    • Addressed PR comments 3

    下载附件