File size: 348 Bytes
d739b1b | 1 2 3 4 5 6 7 | // 시스템 Node/OpenCode는 ASAR 가상 파일을 열 수 없으므로 실제 배포 파일 경로를 전달한다.
// 설명 문서: docs/specs/bada-runtime-integration.md (v1.1.0)
function externalRuntimePath(filename) {
return filename.replace(/([\\/])app\.asar(?=[\\/])/, '$1app.asar.unpacked');
}
module.exports = { externalRuntimePath };
|