Skip to content

Commit

Permalink
Merge pull request #7883 from wazuh/enhancement/7813-update-the-wpk-p…
Browse files Browse the repository at this point in the history
…ackage-generation-documentation

Added reference to mac OS arm64 WPK
  • Loading branch information
vikman90 authored Oct 31, 2024
2 parents 517ae1d + 0fe2134 commit fb1fbf4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,17 @@ If the ``-c`` or ``--checksum`` option is used, a file is created containing the
macOS WPK
~~~~~~~~~

To build a WPK for macOS, you need to first download a PKG package of the desired version:
To build a WPK for macOS, you need to first download a PKG package of the desired version, for the intel64 package case:

.. code-block:: console
# curl -O https://packages.wazuh.com/4.x/macos/wazuh-agent-|WAZUH_CURRENT_OSX|-|WAZUH_REVISION_OSX|.pkg
# curl -O https://packages.wazuh.com/4.x/macos/wazuh-agent-|WAZUH_CURRENT_OSX|-|WAZUH_REVISION_OSX|.intel64.pkg
Run the command below to build a macOS WPK:

.. code-block:: console
# ./generate_wpk_package.sh -t macos -b v|WAZUH_CURRENT_OSX| -d /<DESTINATION_PATH> -k /<PATH_TO_GENERATED_WPK_KEYS> -o wazuh-agent_v|WAZUH_CURRENT_OSX|_macOS.wpk -pn /tmp/wazuh-agent-|WAZUH_CURRENT_OSX|-|WAZUH_REVISION_OSX|.pkg
# ./generate_wpk_package.sh -t macos -b v|WAZUH_CURRENT_OSX| -d /<DESTINATION_PATH> -k /<PATH_TO_GENERATED_WPK_KEYS> -o wazuh-agent_v|WAZUH_CURRENT_OSX|_macOS.wpk -pn /tmp/wazuh-agent-|WAZUH_CURRENT_OSX|-|WAZUH_REVISION_OSX|.intel64.pkg
This script builds a Wazuh |WAZUH_CURRENT_OSX| macOS WPK package named ``wazuh-agent_v|WAZUH_CURRENT_OSX|_macOS.wpk`` and stores it in ``/<DESTINATION_PATH>``. (You can use a destination path of your choice). It does this using the previously generated keys saved in ``/<PATH_TO_GENERATED_WPK_KEYS>``.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ Windows
macOS
-----

.. |WPK_macOS| replace:: `wazuh_agent_v|WAZUH_CURRENT_OSX|_macos_intel64.pkg.wpk <https://packages.wazuh.com/4.x/wpk/macos/pkg/intel64/wazuh_agent_v|WAZUH_CURRENT_OSX|_macos_intel64.pkg.wpk>`__ (`sha512 <https://packages.wazuh.com/|WAZUH_CURRENT_MAJOR_OSX|/checksums/wazuh/|WAZUH_CURRENT_OSX|/wazuh_agent_v|WAZUH_CURRENT_OSX|_macos_intel64.pkg.wpk.sha512>`__)
.. |WPK_macOS_intel64| replace:: `wazuh_agent_v|WAZUH_CURRENT_OSX|_macos_intel64.pkg.wpk <https://packages.wazuh.com/4.x/wpk/macos/pkg/intel64/wazuh_agent_v|WAZUH_CURRENT_OSX|_macos_intel64.pkg.wpk>`__ (`sha512 <https://packages.wazuh.com/|WAZUH_CURRENT_MAJOR_OSX|/checksums/wazuh/|WAZUH_CURRENT_OSX|/wazuh_agent_v|WAZUH_CURRENT_OSX|_macos_intel64.pkg.wpk.sha512>`__)
.. |WPK_macOS_arm64| replace:: `wazuh_agent_v|WAZUH_CURRENT_OSX|_macos_arm64.pkg.wpk <https://packages.wazuh.com/4.x/wpk/macos/pkg/arm64/wazuh_agent_v|WAZUH_CURRENT_OSX|_macos_arm64.pkg.wpk>`__ (`sha512 <https://packages.wazuh.com/|WAZUH_CURRENT_MAJOR_OSX|/checksums/wazuh/|WAZUH_CURRENT_OSX|/wazuh_agent_v|WAZUH_CURRENT_OSX|_macos_arm64.pkg.wpk.sha512>`__)
.. |WAZUH_CUR_OSX| replace:: |WAZUH_CURRENT_OSX|

+--------------+---------------------+--------------+---------------------------------------------+
| Distribution | Version | Architecture | WPK Package |
+==============+=====================+==============+=============================================+
| macOS | |WAZUH_CUR_OSX| | 64bit | |WPK_macOS| |
| macOS | |WAZUH_CUR_OSX| | intel64 | |WPK_macOS_intel64| |
+--------------+---------------------+--------------+---------------------------------------------+
| macOS | |WAZUH_CUR_OSX| | arm64 | |WPK_macOS_arm64| |
+--------------+---------------------+--------------+---------------------------------------------+

0 comments on commit fb1fbf4

Please sign in to comment.