Skip to content

Support apt package#860

Open
ColinLeeo wants to merge 3 commits into
developfrom
support_apt_package
Open

Support apt package#860
ColinLeeo wants to merge 3 commits into
developfrom
support_apt_package

Conversation

@ColinLeeo

Copy link
Copy Markdown
Contributor

Summary

This PR adds installable package support for the TsFile C++ distribution.

  • Adds CPack configuration for component-based packages:
    • libtsfile runtime library
    • libtsfile-dev / libtsfile-devel development package with headers and CMake config files
    • tsfile-cli command-line tool
  • Adds CMake install rules for the shared library, public headers, CMake package metadata, bundled runtime dependencies, and CLI binary.
  • Wires Maven package for the C++ module to invoke the CPack package target via ./mvnw package -P with-cpp.
  • Updates English and Chinese C++ README docs with package build and apt/yum/dnf installation instructions.

Platform Behavior

  • TGZ packages are generated on all supported platforms.
  • DEB and RPM packages are generated on Linux.
  • Package contents are platform-specific, for example .so on Linux and .dylib on macOS.

Testing

Ran on macOS:

./mvnw package -P with-cpp -Dbuild.test=OFF -DskipTests -Dspotless.skip=true -Denable.antlr4=OFF

Result:

- Build completed successfully.
- CPack generated apache-tsfile-2.3.2.dev-Darwin-arm64.tar.gz.
- Verified the package contains tsfile-cli, public headers under usr/include/tsfile, shared library files, and CMake package config files.

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.

1 participant