From 24300e3f2788de8386e8706e0945aae6606c9c78 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Fri, 18 Oct 2019 09:56:47 -0500 Subject: [PATCH] Don't compress dist tarball This lets us take advantage of Steam delta updates. --- README.md | 2 +- build/makefile_base.mak | 4 ++-- proton | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dd0ee5db..f82379d8 100644 --- a/README.md +++ b/README.md @@ -217,7 +217,7 @@ A correct local tool installation should look like this: ├── filelock.py ├── LICENSE ├── proton - ├── proton_dist.tar.gz + ├── proton_dist.tar ├── toolmanifest.vdf ├── user_settings.sample.py └── version diff --git a/build/makefile_base.mak b/build/makefile_base.mak index 47d25fbf..3b287d7b 100644 --- a/build/makefile_base.mak +++ b/build/makefile_base.mak @@ -441,8 +441,8 @@ dist: $(DIST_TARGETS) wine vrclient lsteamclient steam dxvk d9vk | $(DST_DIR) deploy: dist | $(filter-out dist deploy install,$(MAKECMDGOALS)) mkdir -p $(DEPLOY_DIR) && \ cp -a $(DEPLOY_COPY_TARGETS) $(DEPLOY_DIR) && \ - tar -C $(DST_DIR) -c . | gzip -c -1 > $(DEPLOY_DIR)/proton_dist.tar.gz - @echo "Created deployment tarball at "$(DEPLOY_DIR)"/proton_dist.tar.gz" + tar -C $(DST_DIR) -c . > $(DEPLOY_DIR)/proton_dist.tar + @echo "Created deployment archive at "$(DEPLOY_DIR)"/proton_dist.tar" install: dist | $(filter-out dist deploy install,$(MAKECMDGOALS)) if [ ! -d $(STEAM_DIR) ]; then echo >&2 "!! "$(STEAM_DIR)" does not exist, cannot install"; return 1; fi diff --git a/proton b/proton index f8e0d954..e763ab9e 100755 --- a/proton +++ b/proton @@ -116,7 +116,7 @@ class Proton: not filecmp.cmp(self.version_file, self.path("dist/version")): if os.path.exists(self.dist_dir): shutil.rmtree(self.dist_dir) - tar = tarfile.open(self.path("proton_dist.tar.gz"), mode="r:gz") + tar = tarfile.open(self.path("proton_dist.tar"), mode="r") tar.extractall(path=self.dist_dir) tar.close() try_copy(self.version_file, self.dist_dir)