Skip to content
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

Add -k/--key option. Allow getting more properties of the app #497

Merged
merged 27 commits into from
Jan 25, 2021

Conversation

ryanluoo
Copy link

@ryanluoo ryanluoo commented Jan 21, 2021

Now by using -B and -j options together, we can get some basic properties of the app. Like CFBundleVersion.

But actually more properties could be output by passing the corresponding keys.

We can find all the existing keys in Apple's doc

So I add a new option, allowing people to get more properties. If multiple keys are needed, we can join them by '&'

For example, if we need UIFileSharingEnabled, CFBundleExecutable, CFBundlePackageType of the installed app.

UIFileSharingEnabled specifies whether the app shares files through iTunes
CFBundleExecutable identifies the name of the bundle’s main executable file
CFBundlePackageType identifies the type of the bundle and is analogous to the Mac OS 9 file type code

We can use the command :
ios-deploy -B -j --key=UIFileSharingEnabled&CFBundleExecutable&CFBundlePackageType

Part of output:

"com.kingsoft.www.office.wpsoffice" : {
    "CFBundleShortVersionString" : "11.3.1",
    "CFBundleIdentifier" : "com.kingsoft.www.office.wpsoffice",
    "UIFileSharingEnabled" : true,
    "CFBundleDisplayName" : "WPS Office",
    "CFBundleName" : "WPS Office",
    "CFBundleExecutable" : "wpsoffice",
    "CFBundlePackageType" : "APPL",
    "CFBundleVersion" : "11.3.191809"
  },

ryan.luo and others added 24 commits January 19, 2020 15:03
…tory recursively; add --json support for list_file
Merge from official repo master
@ryanluoo
Copy link
Author

ryanluoo commented Jan 22, 2021

Also revise the error message. Seems we missed some required options before

on_error(@"One of -[b|c|o|l|w|D|R|X|e|B|C|9|] is required to proceed!");

@ryanluoo
Copy link
Author

ryanluoo commented Jan 22, 2021

May I ask how often did you release a new official version to HomeBrew ?
My project is relying on ios-deploy now . Really appreciate it if I can experience the new feature from the official HomeBrew release.

@ivanhernandez13
Copy link

Thanks for the PR! Will try to make some time today to take a look.

As for release schedule, it's pretty much ad-hoc. We haven't done a release in a while so I can get a new release going after this PR lands.

ryan.luo and others added 2 commits January 24, 2021 10:48
@ivanhernandez13 ivanhernandez13 merged commit 23b9278 into ios-control:master Jan 25, 2021
Copy link

@Indo1x Indo1x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

H

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants