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

OS X package support #332

Merged
merged 1 commit into from Jan 7, 2013

Conversation

Projects
None yet
2 participants
@timsutton
Contributor

timsutton commented Jan 7, 2013

For issue #317.

Documentation is up on my Wiki fork here:

https://github.com/timsutton/fpm/wiki/OS-X-packages

Not exactly sure if I can issue a pull request for the Wiki changes.

Initial OS X package support, #317.
Basic support for OS X flat packages (.pkg)

- input/output
- output supports scripts, postinstall actions (using --info option),
  ownership option and bundle-id-prefix option
- requires pkgbuild (therefore OS X 10.7+ only), pkgutil for input
- no tests yet

ignore .DS_Store

ignore .pkg

identifier gets its own method

first few osxpkg spec tests

osxpkg: extract name and version from PackageInfo on input

osxpkg: rename option bundle-id-prefix to identifier-prefix

- 'bundle-id' is ambiguous, given the various 'bundle'-related logic possible with OS X packages

osxpkg: fix old 'osx_' attribute prefix to 'osxpkg' in osxpkg.erb

New option: --osxpkg-dont-obsolete, to add files to 'dont-obsolete' element in PackageInfo.

osxpkg: Define public/private methods.

osxpkg_spec: Tests for basic attributes through input/output
"Reverse domain prefix prepended to package identifier, " \
"ie. 'org.great.my'. If this is omitted, the identifer " \
"will be the package name."
option "--payload-free", :flag, "Define no payload, assumes use of script options.",

This comment has been minimized.

@jordansissel

jordansissel Jan 7, 2013

Owner

maybe have this be "--payload" with a default of true? Then you can do: --no-osxpkg-payload

Thoughts?

This comment has been minimized.

@timsutton

timsutton Jan 7, 2013

Contributor

Sure. The term 'payload-free' is a term of art from the OS X sysadmin world, but I agree the double negative isn't necessary.

I've just made the changes, would you like this as a separate pull request?

This comment has been minimized.

@jordansissel

jordansissel Jan 7, 2013

Owner

Oooh ok, if it's already a term used in the OS X system, let's keep it. Thanks for clarifying! :)

This comment has been minimized.

@timsutton

timsutton Jan 7, 2013

Contributor

Well, not used by the system, but by Mac enterprise mailing lists and bloggers. Packaging on OS X has little official documentation :)

jordansissel added a commit that referenced this pull request Jan 7, 2013

@jordansissel jordansissel merged commit 7ce7264 into jordansissel:master Jan 7, 2013

1 check failed

default The Travis build failed
Details
@jordansissel

This comment has been minimized.

Owner

jordansissel commented Jan 7, 2013

Thanks! :)

@timsutton

This comment has been minimized.

Contributor

timsutton commented Jan 7, 2013

Not being very familiar with Github Wikis, I just realized I can edit the master repo's wiki directly, so please disregard my message in the pull request.

You can also close #317, was hoping that by referencing it in my commit it wouldn't create a new pull request, but it did.

Thanks for FPM!

prof-milki pushed a commit to prof-milki/xpm that referenced this pull request Dec 18, 2014

jls
Merge pull request jordansissel#332 from timsutton/4df9617b8a3e71ac82…
…b4dadb8cad28cded66159f

OS X package support

prof-milki pushed a commit to prof-milki/xpm that referenced this pull request Dec 27, 2014

Merge pull request jordansissel#332 from timsutton/4df9617b8a3e71ac82…
…b4dadb8cad28cded66159f

OS X package support

jordansissel added a commit that referenced this pull request Apr 24, 2015

jordansissel added a commit that referenced this pull request Jun 20, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment