mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-12 04:30:42 +08:00
.
This commit is contained in:
parent
70f84ce4e6
commit
98f65970d1
2
main.js
2
main.js
@ -30,7 +30,6 @@ if (length>2) {
|
|||||||
let main = new psyDuck.Main()
|
let main = new psyDuck.Main()
|
||||||
await main.init(params)
|
await main.init(params)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// console.log(e)
|
|
||||||
if (e == 'End') {
|
if (e == 'End') {
|
||||||
console.log("End")
|
console.log("End")
|
||||||
}
|
}
|
||||||
@ -60,6 +59,7 @@ if (length>2) {
|
|||||||
console.log("没有可执行的脚本")
|
console.log("没有可执行的脚本")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
process.exit()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})().catch((e) => {
|
})().catch((e) => {
|
||||||
|
|||||||
@ -256,6 +256,7 @@ import {fileURLToPath, pathToFileURL} from 'url';
|
|||||||
}else{
|
}else{
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
|
process.exit()
|
||||||
})`
|
})`
|
||||||
fs.writeFile(`${abspath}/${filename}.js`, code, function(err, data) {
|
fs.writeFile(`${abspath}/${filename}.js`, code, function(err, data) {
|
||||||
if (err) {
|
if (err) {
|
||||||
@ -320,7 +321,7 @@ import {fileURLToPath, pathToFileURL} from 'url';
|
|||||||
}else{
|
}else{
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
|
process.exit()
|
||||||
})`
|
})`
|
||||||
fs.writeFile(`${abspath}/${script}`, code, function(err, data) {
|
fs.writeFile(`${abspath}/${script}`, code, function(err, data) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user