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

Fix: Git bash failing to run platform scripts on Windows due to tar conflict #509

Merged
merged 2 commits into from
Feb 26, 2025

Conversation

lukehb
Copy link
Contributor

@lukehb lukehb commented Feb 25, 2025

Relevant components:

  • Platform scripts

Problem statement:

Some users want to use Git bash on Windows to run the platform_scripts/cmd.
This currently fails as Git bash ships its own (gnu) tar which does not support .zip files.
Our intent is to use (bsd)tar that ships with Windows.

Closes #473

Solution

The solution is to explicitly call (bsd) tar which resides in System32

Documentation

N/A

Test Plan and Compatibility

Tested with Git bash and cmd.exe both now work.

@lukehb lukehb added auto-backport Used to specify we want a PR to auto backport to a branch, must be paired with auto-backport-to-UEX. auto-backport-to-UE5.4 Auto backport to UE 5.4 auto-backport-to-UE5.3 Auto backport to UE 5.3 auto-backport-to-UE5.5 labels Feb 25, 2025
@lukehb lukehb requested a review from mcottontensor February 25, 2025 23:09
@lukehb lukehb linked an issue Feb 25, 2025 that may be closed by this pull request
@@ -206,7 +206,7 @@ if exist coturn\ (
curl -L -o ./turnserver.zip "https://github.com/EpicGamesExt/PixelStreamingInfrastructure/releases/download/v4.5.2-coturn-windows/turnserver.zip"

@Rem Unarchive the .zip to a directory called "turnserver"
mkdir coturn & tar -xf turnserver.zip -C coturn
mkdir coturn & %SystemRoot%\System32\tar.exe -xf turnserver.zip -C coturn
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would prefer if the path was a variable. ie

set TAR="%SystemRoot%\System32\tar.exe"

up near where NPM is defined. Then just use %TAR%

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done: bf33b3c

@mcottontensor mcottontensor merged commit fc7fcb9 into master Feb 26, 2025
18 checks passed
@mcottontensor mcottontensor deleted the RTCP-8168 branch February 26, 2025 01:17
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
UE5.4 Backport failed because of merge conflicts
UE5.3 Backport failed because of merge conflicts
UE5.5

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

backport --pr 509

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

mcottontensor added a commit that referenced this pull request Feb 26, 2025
[UE5.5] Merge pull request #509 from EpicGamesExt/RTCP-8168
@mcottontensor
Copy link
Collaborator

Will probably need separate changes for older branches than 5.5 since the scripts changed significantly.

@lukehb
Copy link
Contributor Author

lukehb commented Feb 26, 2025

Will probably need separate changes for older branches than 5.5 since the scripts changed significantly.

It is okay, we'll leave those older branches as they are then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Used to specify we want a PR to auto backport to a branch, must be paired with auto-backport-to-UEX. auto-backport-to-UE5.3 Auto backport to UE 5.3 auto-backport-to-UE5.4 Auto backport to UE 5.4 auto-backport-to-UE5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] - Setup error with TAR unzip .bat
2 participants