Don't compress dist tarball

This lets us take advantage of Steam delta updates.
This commit is contained in:
Andrew Eikum 2019-10-18 09:56:47 -05:00
parent 338d72133e
commit 24300e3f27
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

2
proton
View File

@ -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)