Don't compress dist tarball
This lets us take advantage of Steam delta updates.
This commit is contained in:
parent
338d72133e
commit
24300e3f27
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
2
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)
|
||||
|
|
Loading…
Reference in a new issue