This commit is contained in:
可达鸭 2025-03-26 09:14:35 +08:00
parent 70f84ce4e6
commit 98f65970d1
2 changed files with 3 additions and 2 deletions

View File

@ -30,7 +30,6 @@ if (length>2) {
let main = new psyDuck.Main()
await main.init(params)
} catch (e) {
// console.log(e)
if (e == 'End') {
console.log("End")
}
@ -60,6 +59,7 @@ if (length>2) {
console.log("没有可执行的脚本")
}
}
process.exit()
}
}
})().catch((e) => {

View File

@ -256,6 +256,7 @@ import {fileURLToPath, pathToFileURL} from 'url';
}else{
console.log(e)
}
process.exit()
})`
fs.writeFile(`${abspath}/${filename}.js`, code, function(err, data) {
if (err) {
@ -320,7 +321,7 @@ import {fileURLToPath, pathToFileURL} from 'url';
}else{
console.log(e)
}
process.exit()
})`
fs.writeFile(`${abspath}/${script}`, code, function(err, data) {
if (err) {