[vcpkg-tool-nodejs] Do not break osx code signatures (#46353)

This commit is contained in:
Kai Pastor 2025-07-10 10:27:39 +02:00 committed by GitHub
parent f24e30caff
commit cd6256cd37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 41 additions and 2 deletions

View File

@ -61,3 +61,8 @@ vcpkg_execute_in_download_mode(
)
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/${ARCHIVE}" "${CURRENT_PACKAGES_DIR}/tools/node")
# Do not break code signatures
if(VCPKG_TARGET_IS_OSX)
set(VCPKG_FIXUP_MACHO_RPATH OFF)
endif()

View File

@ -1,6 +1,6 @@
{
"name": "vcpkg-tool-nodejs",
"version-semver": "16.18.0",
"port-version": 1,
"port-version": 2,
"supports": "native"
}

View File

@ -0,0 +1,20 @@
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
find_program(NODEJS
NAMES node
PATHS
"${CURRENT_INSTALLED_DIR}/tools/node"
"${CURRENT_INSTALLED_DIR}/tools/node/bin"
NO_DEFAULT_PATH
REQUIRED
)
execute_process(
COMMAND "${NODEJS}" --version
COMMAND_ECHO STDOUT
COMMAND_ERROR_IS_FATAL ANY
)
execute_process(
COMMAND "${NODEJS}" -p "process.arch"
COMMAND_ECHO STDOUT
COMMAND_ERROR_IS_FATAL ANY
)

View File

@ -0,0 +1,9 @@
{
"name": "vcpkg-ci-vcpkg-tool-nodejs",
"version-string": "ci",
"description": "Test port to validate vcpkg-tool-nodejs",
"supports": "native",
"dependencies": [
"vcpkg-tool-nodejs"
]
}

View File

@ -9950,7 +9950,7 @@
},
"vcpkg-tool-nodejs": {
"baseline": "16.18.0",
"port-version": 1
"port-version": 2
},
"vcpkg-tool-python2": {
"baseline": "2.7.18",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6d004b33aa9e92c31d1238728de1546712af44d0",
"version-semver": "16.18.0",
"port-version": 2
},
{
"git-tree": "2738f551c277a4ac6650e7d140fc36aa26210a63",
"version-semver": "16.18.0",