From 05b08071fcca57660c345800f6d9b17bcc23dbe4 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Thu, 19 May 2022 10:46:14 -0600 Subject: [PATCH] reroute_payloads.py: Remove unused import --- resources/reroute_payloads.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/reroute_payloads.py b/resources/reroute_payloads.py index bd3750da1..c5f5ef4b9 100644 --- a/resources/reroute_payloads.py +++ b/resources/reroute_payloads.py @@ -2,7 +2,6 @@ # Implements a shadowfile to avoid direct writes to the dmg # Copyright (C) 2022, Mykola Grymalyuk -import sys import plistlib from pathlib import Path import subprocess @@ -12,12 +11,12 @@ import atexit class reroute_payloads: def __init__(self, constants): self.constants = constants - + def setup_tmp_disk_image(self): # Create a temp directory to mount the payloads.dmg # Then reroute r/w to this new temp directory # Currently only applicable for GUI variant - if self.constants.launcher_binary and self.constants.wxpython_variant is True and not self.constants.launcher_script: + if self.constants.wxpython_variant is True and not self.constants.launcher_script: print("- Running in Binary GUI mode, switching to tmp directory") self.temp_dir = tempfile.TemporaryDirectory() print(f"- New payloads location: {self.temp_dir.name}") @@ -28,7 +27,8 @@ class reroute_payloads: [ "hdiutil", "attach", "-noverify", f"{self.constants.payload_path}.dmg", "-mountpoint", Path(self.temp_dir.name / Path("payloads")), - "-nobrowse", "-shadow", Path(self.temp_dir.name / Path("payloads_overlay")), + "-nobrowse", + "-shadow", Path(self.temp_dir.name / Path("payloads_overlay")), "-passphrase", "password" ], stdout=subprocess.PIPE, stderr=subprocess.STDOUT