Skip to content

Commit 5af3c81

Browse files
authored
set package vendor (#2)
1 parent ca5c361 commit 5af3c81

File tree

2 files changed

+64
-1
lines changed

2 files changed

+64
-1
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
cmake_minimum_required(VERSION 3.26)
22
set(JMETER_VERSION 5.5)
3-
project(JMeter VERSION ${JMETER_VERSION})
3+
project(JMeter
4+
VERSION ${JMETER_VERSION}
5+
DESCRIPTION "Apache JMeter packaged by DEVCOM"
6+
HOMEPAGE_URL https://github.com/DevelopersCommunity/cmake-jmeter
7+
LANGUAGES NONE
8+
)
49

510
set(JMETER_TARBALL apache-jmeter-${CMAKE_PROJECT_VERSION}.zip)
611
set(JMETER_TARBALL_SHA512 b24cdaa57234153df34a40bdc4501aa16f3286ca3e172eb889a5daa0ded86ab51388af1ea56e756df566a6f74f39f80eceb04e5d559668aeac9ec9759d6445ac)
@@ -84,4 +89,5 @@ endif()
8489
file(COPY_FILE ${JMETER_DIR}/LICENSE ${JMETER_DIR}/LICENSE.txt)
8590
set(CPACK_RESOURCE_FILE_LICENSE ${JMETER_DIR}/LICENSE.txt)
8691
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CMAKE_PROJECT_NAME})
92+
set(CPACK_PACKAGE_VENDOR DEVCOM)
8793
include(CPack)

README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,60 @@
33
This is a CMake project to build a Windows installer for [Apache
44
JMeter](https://jmeter.apache.org/). The installer will be used to create a
55
[winget](https://learn.microsoft.com/windows/package-manager/) package.
6+
7+
## Prerequisites
8+
9+
- [CMake](https://cmake.org/)
10+
- [Ninja](https://ninja-build.org/)
11+
- [WiX v3](https://wixtoolset.org/docs/wix3/) (if packaging on Windows)
12+
13+
You can install the first two components with the following
14+
[winget](https://learn.microsoft.com/windows/package-manager/winget/) commands:
15+
16+
```powershell
17+
winget install --id Kitware.CMake
18+
winget install --id Ninja-build.Ninja
19+
```
20+
21+
WiX v3 is available at <https://github.com/wixtoolset/wix3/releases/>. It
22+
requires .NET Framework 3.5, which can be installed with the following command:
23+
24+
```powershell
25+
Start-Process `
26+
-FilePath pwsh `
27+
-ArgumentList "-Command `"& {Enable-WindowsOptionalFeature -Online -FeatureName NetFx3}`"" `
28+
-Wait `
29+
-Verb RunAs
30+
```
31+
32+
Update your path environment with `setx` (supposing you installed the tools in
33+
their default directories):
34+
35+
```powershell
36+
setx PATH ($(Get-ItemProperty -Path HKCU:\Environment -Name Path).Path + "${env:ProgramFiles(x86)}\WiX Toolset v3.11\bin")
37+
```
38+
39+
Check if `PATH` was set correctly:
40+
41+
```
42+
Get-Command cmake
43+
Get-Command ninja
44+
Get-Command candle
45+
```
46+
47+
You may need to restart your Windows session if you can't find `ninja` even
48+
after restarting your terminal.
49+
50+
## Build
51+
52+
Use the following commands to generate the installation package:
53+
54+
```powershell
55+
cmake -B build -G Ninja
56+
cmake --build build --target package
57+
```
58+
59+
You need Internet access to execute the build process to download the Apache
60+
JMeter binaries.
61+
62+
If successful, the MSI file will be available in the `build` directory.

0 commit comments

Comments
 (0)