Skip to content

Commit

Permalink
Fixes an issue I was having with making RT zips on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyedra committed Aug 14, 2024
1 parent 12a8fca commit daa706b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Tools/package_client_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ def build_windows(skip_build: bool) -> None:

client_zip = zipfile.ZipFile(
p("release", "Robust.Client_win-x64.zip"), "w",
compression=zipfile.ZIP_DEFLATED)
compression=zipfile.ZIP_DEFLATED,
strict_timestamps=False # Was hitting this issue locally when building where dotnet is making files from 1979 for some reason -- Skye
)

copy_dir_into_zip(p("bin", "Client", "win-x64", "publish"), "", client_zip, IGNORED_FILES_WINDOWS)
copy_resources("Resources", client_zip)
Expand All @@ -168,7 +170,9 @@ def build_macos(skip_build: bool) -> None:
print(Fore.GREEN + "Packaging macOS x64 client..." + Style.RESET_ALL)
# Client has to go in an app bundle.
client_zip = zipfile.ZipFile(p("release", "Robust.Client_osx-x64.zip"), "a",
compression=zipfile.ZIP_DEFLATED)
compression=zipfile.ZIP_DEFLATED,
strict_timestamps=False # Was hitting this issue locally when building where dotnet is making files from 1979 for some reason -- Skye
)

contents = p("Space Station 14.app", "Contents", "Resources")
copy_dir_into_zip(p("BuildFiles", "Mac", "Space Station 14.app"), "Space Station 14.app", client_zip)
Expand All @@ -188,7 +192,9 @@ def build_linux(skip_build: bool) -> None:

client_zip = zipfile.ZipFile(
p("release", "Robust.Client_linux-x64.zip"), "w",
compression=zipfile.ZIP_DEFLATED)
compression=zipfile.ZIP_DEFLATED,
strict_timestamps=False # Was hitting this issue locally when building where dotnet is making files from 1979 for some reason -- Skye
)

copy_dir_into_zip(p("bin", "Client", "linux-x64", "publish"), "", client_zip, IGNORED_FILES_LINUX)
copy_resources("Resources", client_zip)
Expand Down

0 comments on commit daa706b

Please sign in to comment.