Make macOS package and tgz naming consistent

Đang mở
#26 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
cmake
Lĩnh vực
build-system, release

Hướng nghiên cứu

Read platform/macos/common.cmake and platform/macos/productbuild.cmake at the referenced naming definitions, then compare how tgz and .pkg artifacts are produced. Decide on a consistent scheme for package revision and architecture naming, including the universal binary case; done means both artifact types follow the same documented convention.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug cmake

It has been brought to my attention that the macOS tgz we create, containing the artifacts needed to create a .pkg, recently changed the architecture name from x86_64 to arm64, due to how the CI was creating them.
Both architectures are wrong, because the binary inside it's actually a universal one.

Looking at how we name things though I see another inconsistency. The naming format for macOS artifacts has been copied from Linux, so the macOS common.make has the following scheme:
https://github.com/osquery/osquery-packaging/blob/c089fb2d3d796d976e3b2fbea7ee69a1616b9576/platform/macos/common.cmake#L10-L11

But it's being overriden in the productbuild (or .pkg) case with:
https://github.com/osquery/osquery-packaging/blob/c089fb2d3d796d976e3b2fbea7ee69a1616b9576/platform/macos/productbuild.cmake#L10

So in the end that naming only works for the .tgz. I think that we should decide a consistent naming scheme.

On the one hand it makes sense to me to have a package release component, in all cases, to indicate that the package has been recreated with the same contents (maybe there was an issue with the CI that created the package or what not).
I'm not sure if we ever used it though, since the package creation is all pretty automatic.

For the architecture, I was initially thinking of putting universal as default for the architecture, and then let the user manually set a custom architecture if they wanted, but adding an option only for the tgz (or any other method that is not .pkg) felt weird. Mostly in how would we even name that.
If the architecture appeared in all the artifacts, then it would make more sense.
Another alternative is to simply remove it and not let the user change it (without modifying the cmake). This would assume that the package is a universal one, and so always works wherever it's being installed.

Ngôn ngữ chính
CMake
Star
5
Fork
12
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của osquery/osquery-packaging

Tất cả issue của osquery/osquery-packaging

Issue tương tự

Thêm issue về Build System

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.