mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-12 01:39:43 +00:00
ci: enhance Windows OpenSSL directory checks in environment script
- Added path module import for improved directory handling. - Implemented additional logging for the existence and contents of the OpenSSL directory on Windows. - Enhanced the script to join the OpenSSL directory path for better compatibility and clarity.
This commit is contained in:
parent
137647b6c6
commit
313c77ffb8
@ -1,6 +1,5 @@
|
||||
import fs from "fs"
|
||||
|
||||
// run the following only on windows
|
||||
import path from "path"
|
||||
|
||||
const OPENSSL_DIR = process.env.OPENSSL_DIR
|
||||
const OPENSSL_INCLUDE_DIR = process.env.OPENSSL_INCLUDE_DIR
|
||||
@ -24,6 +23,12 @@ if (process.platform === "win32") {
|
||||
for (const dir of fs.readdirSync(programFilesDir)) {
|
||||
console.log(dir)
|
||||
}
|
||||
const joinedOpenSSLDir = path.join(programFilesDir, "OpenSSL")
|
||||
console.log(`joinedOpenSSLDir (${joinedOpenSSLDir}) exists: `, fs.existsSync(joinedOpenSSLDir))
|
||||
console.log("joinedOpenSSLDir Directory Contents:")
|
||||
for (const dir of fs.readdirSync(joinedOpenSSLDir)) {
|
||||
console.log(dir)
|
||||
}
|
||||
|
||||
console.log(`OPENSSL_DIR (${OPENSSL_DIR}) Exists: ${fs.existsSync(OPENSSL_DIR)}`)
|
||||
console.log(
|
||||
|
Loading…
x
Reference in New Issue
Block a user