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

Support for OS-specific "bundle values" #33

Open
daniel-abramov opened this issue Aug 16, 2017 · 6 comments
Open

Support for OS-specific "bundle values" #33

daniel-abramov opened this issue Aug 16, 2017 · 6 comments

Comments

@daniel-abramov
Copy link
Contributor

Bundles for some operating systems may have more options available than for others.

For instance if we're talking about OS X, it has several properties which you can specify in Info.plist such as CFBundleURLName (quite a common thing if you want your app to be able to catch the corresponding URI requests), at the moment there is no way to add additional properties to Info.plist as it has a fixed, hardcoded format with only certain (the most common) values.

It would be nice to be able to specify OS-specific bundle properties.

@mdsteele
Copy link
Collaborator

Some additional OS-specific fields we could consider adding:

  • deb_depends (list of strings) - this would also take care of issue Dependency specification #25
  • deb_postinst (string)
  • deb_prerm (string)
  • ios_interface_orientation (string)
  • ios_launch_image_file (string)
  • ios_prerendered_icon (boolean)
  • ios_requires_persistent_wifi (boolean)
  • ios_status_bar_hidden (boolean)
  • ios_status_bar_style (string)
  • osx_frameworks (list of strings)
  • osx_high_resolution_capable (boolean)
  • osx_resources_file_mapped (boolean)
  • rpm_depends (list of strings)
  • rpm_postinst (string)
  • rpm_prerm (string)

mdsteele added a commit to mdsteele/cargo-bundle that referenced this issue Jul 23, 2018
mdsteele added a commit that referenced this issue Jul 23, 2018
Add OS-specific setting for OSX frameworks (for #33)
@virtualritz
Copy link

For macOS, how about adding code that automatically turns this_name in Cargo.toml's [package.metadata.bundle] section into CFBundleThisName in Info.plist?

For example, I need:
CFBundleSignature
CFBundlePackageType
CFBundleExecutable

Asking for each of these and waiting for the devs to update cargo-bundle is not practical.

@Absolucy
Copy link

Absolucy commented Feb 23, 2021

Something like [package.metadata.bundle.deb] and [package.metadata.bundle.mac] that overrode [package.metadata.bundle] would be useful - for example, packaging a systemd .service file in a deb, and a launchd .plist file in an .app. or an .icns file on macOS, .png on Linux, etc etc

@alokedesai
Copy link

Any update on this? Support for CFBundleURLName is really often used for MacOs apps and not being able to use it with cargo bundle is frustrating. Thanks so much for working on this project!

@ghost
Copy link

ghost commented Aug 3, 2022

Seems like this project is pretty much dead, sadly.

@mdsteele
Copy link
Collaborator

mdsteele commented Aug 3, 2022

Yeah, I haven't been able to provide any active development on this project lately. However, PRs are always welcome, and I do still try to keep up with reviewing those. If there's a feature you need, please go ahead and add it!

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

No branches or pull requests

5 participants