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

POC Trunk binary distribution format #68

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

POC Trunk binary distribution format #68

wants to merge 1 commit into from

Conversation

theory
Copy link
Owner

@theory theory commented Jun 18, 2024

trunk.mk copies a bunch of the install target from PGXS and modifies it to install into a organized according to the proposed format. The adds the make variables DISTVERSION, LICENSE, and LANGUAGE, but otherwise depends on variables defined by PGXS. It uses jq to build trunk.json, shasum to build the digests file, and tar to create the *.trunk artifact as a tarball.

install_trunk is a simple shell script to demonstrate unpacking, validating, and installing a trunk file. It too relies on jq, shasum, and tar, and uses rsync to do the actual installation. It also does basic trunk version, platform, and Postgres version validation.

@theory theory self-assigned this Jun 18, 2024
`trunk.mk` copies a bunch of the `install` target from PGXS and modifies
it to install into a organized according to the [proposed format]. The
adds the `make` variables `DISTVERSION`, `LICENSE`, and `LANGUAGE`, but
otherwise depends on variables defined by PGXS. It uses `jq` to build
`trunk.json`, `shasum` to build the `digests` file, and `tar` to create
the `*.trunk` artifact as a tarball.

`install_trunk` is a simple shell script to demonstrate unpacking,
validating, and installing a trunk file. It too relies on `jq`,
`shasum`, and `tar`, and uses `rsync` to do the actual installation. It
also does basic trunk version, platform, and Postgres version
validation.

  [proposed format]: https://github.com/orgs/pgxn/discussions/2
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.

Design Binary Packaging Architecture Design Packaging Automation
1 participant