-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
installation_proxy: bytes package install #1266
base: master
Are you sure you want to change the base?
Conversation
I much rather it be explicitly done than implicit. I'm okay with the |
that makes sense, should be good now |
dirs = zip_file.namelist()[1].split('/') | ||
|
||
if dirs[0] != 'Payload': | ||
raise AppInstallError('package does not have a payload') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raise AppInstallError('package does not have a payload') | |
raise InvalidArgumentError('package does not have a payload') |
raise AppInstallError('package does not have the appropriate folders structure') | ||
|
||
except BadZipFile: | ||
raise AppInstallError('invalid bytes package') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raise AppInstallError('invalid bytes package') | |
raise InvalidArgumentError('invalid bytes package') |
ipcc_mode = package_path.suffix == '.ipcc' | ||
|
||
if options is None: | ||
options = {} | ||
|
||
if ipcc_mode: | ||
options['PackageType'] = 'CarrierBundle' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this diff
|
||
self._watch_completion(handler, ipcc_mode, args) | ||
|
||
def upload_ipcc_as_folder(self, file: Path, afc_client: AfcService) -> None: | ||
def upload_ipcc_as_folder(self, file: Union[Path, bytes], afc_client: AfcService) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
restore this function behavior to the old one. the bytes objects can already be convered to file in install_from_bytes()
ability to install .ipa/.ipcc using bytes objects
why?
it's way nicer to directly install a package without dealing with paths.
someone could do something like so
without the need to save it to a file and then installing it and then deleting it !
too much work
this is also valid