add linux path support
All checks were successful
Build and Release / build-and-release (push) Successful in 30s

This commit is contained in:
2026-05-28 15:20:24 +03:00
parent 7b87cc9161
commit 23d418c7bb

View File

@@ -14,7 +14,7 @@ function build() {
const mountedFiles = new Set(); const mountedFiles = new Set();
const result = data.replace(mountRegex, (_match, file) => { const result = data.replace(mountRegex, (_match, file) => {
let fileContent = fs.readFileSync(path.normalize(file), "utf8"); let fileContent = fs.readFileSync(file.replace(/\\/g, "/"), "utf8");
mountedFiles.add(path.resolve(file)); mountedFiles.add(path.resolve(file));
const inlinePhpVarRegex = /"<<BUILDER_PHP_VAR\((?<varName>.*?)\)>>"/g; const inlinePhpVarRegex = /"<<BUILDER_PHP_VAR\((?<varName>.*?)\)>>"/g;