mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-16 07:30:43 +08:00
Compare commits
2 Commits
70f84ce4e6
...
f0d0bfb18b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0d0bfb18b | ||
|
|
98f65970d1 |
2
main.js
2
main.js
@ -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) => {
|
||||
|
||||
@ -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) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user