Skip to content

Commit

Permalink
fix arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
superrnovae committed Aug 31, 2022
1 parent d41a750 commit 1c58f20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 3 additions & 4 deletions permasigner/dpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from pathlib import Path

from . import logger
from .logger import colors
from .bundled.unix_ar import unix_ar
from .bundled.constrictor.dpkg import DPKGBuilder

Expand All @@ -15,13 +14,13 @@ def __init__(self,
output_path: Path,
dpkg: bool,
in_package: bool,
args: bool) -> None:
debug: bool) -> None:
self.bundle = bundle
self.tmpfolder = tmpfolder
self.dpkg = dpkg
self.output_path = output_path
self.in_package = in_package
self.args = args
self.debug = debug

def package_with_constrictor(self, source, control, postinst, prerm) -> Path:
dirs = [{
Expand Down Expand Up @@ -55,7 +54,7 @@ def package(self) -> Path:
# then, package with dpkg-deb
# otherwise, package with constrictor
if self.dpkg:
return self.package_with_dpkg(self.output_path, self.tmpfolder, self.args.debug)
return self.package_with_dpkg(self.output_path, self.tmpfolder, self.debug)
else:
return self.package_with_constrictor(
self.tmpfolder / "deb/Applications",
Expand Down
5 changes: 4 additions & 1 deletion permasigner/permasigner.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ def permasign(self) -> Path:
# Set chmod 755 on application executable
print("Changing app executable permissions...")
utils.make_executable(full_app_path / bundle["executable"])

# Get path to certificate file
cert = utils.get_certificate_path(self.in_package)

Expand All @@ -182,7 +183,7 @@ def permasign(self) -> Path:

# Package the deb file
logger.log("Packaging the deb file...", color=colors["yellow"])
dpkg = Dpkg(bundle, self.tmp, self.output_dir, self.dpkg, self.in_package, self.args)
dpkg = Dpkg(bundle, self.tmp, self.output_dir, self.dpkg, self.in_package, self.args.debug)
return dpkg.package()

def check_path_arguments(self) -> None:
Expand Down Expand Up @@ -272,3 +273,5 @@ def extract_ipa(self, src: Path) -> None:
with (self.tmp / "app") as path:
path.mkdir()
f.extractall(path)


0 comments on commit 1c58f20

Please sign in to comment.