Skip to content

Commit abbc459

Browse files
Removes version parameter from build script
Updates documentation to remove the version parameter from the build script usage instructions. Adds a commit SHA parameter for better tracking of builds.
1 parent 2d53fc4 commit abbc459

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/development/packaging/generate-dashboard-package.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ Using the script
165165

166166
Run the ``build-packages.sh`` script in the ``dev-tools/build-packages/`` folder of the repository. The script requires the following parameters:
167167

168+
- ``-c``, ``--commit-sha``: Set the commit sha of this build.
168169
- ``-a``, ``--app``: Indicate the path to ``wazuh-package.zip``.
169170
- ``-b``, ``--base``: Indicate the path to ``dashboard-package.zip``.
170171
- ``-s``, ``--security``: Indicate the path to ``security-package.zip``.
171-
- ``-v``, ``--version``: Set the version for this build.
172172
- ``--all-platforms``: Build the packages for all platforms.
173173
- ``--deb``: Build a deb package.
174174
- ``--rpm``: Build an rpm package.
@@ -182,7 +182,7 @@ Run the ``build-packages.sh`` script in the ``dev-tools/build-packages/`` folder
182182
.. code:: console
183183
184184
$ cd ../wazuh-dashboard/dev-tools/build-packages/
185-
$ ./build-packages.sh -v <VERSION> -r <REVISION> --<DISTRIBUTION> -a file:///<PATH_TO_wazuh-package.zip> -s file:///<PATH_TO_security-package.zip> -b file:///<PATH_TO_dashboard-package.zip>
185+
$ ./build-packages.sh -r <REVISION> --<DISTRIBUTION> -a file:///<PATH_TO_wazuh-package.zip> -s file:///<PATH_TO_security-package.zip> -b file:///<PATH_TO_dashboard-package.zip>
186186
187187
Where ``--<DISTRIBUTION>`` is either ``--deb``, ``--rpm``, ``--tar``, or ``--all-platforms``.
188188

@@ -199,7 +199,7 @@ Example:
199199
.. code:: console
200200
201201
$ cd ../wazuh-dashboard/dev-tools/build-packages/
202-
$ ./build-packages.sh -v v|WAZUH_CURRENT| -r 1 --deb -a file:///packages/wazuh-package.zip -s file:///packages/security-package.zip -b file:///packages/dashboard-package.zip
202+
$ ./build-packages.sh -r 1 --deb -a file:///packages/wazuh-package.zip -s file:///packages/security-package.zip -b file:///packages/dashboard-package.zip
203203
204204
The script generates the package in the ``output`` folder of the same directory where it is located.
205205

0 commit comments

Comments
 (0)