mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-22 18:21:35 +03:00
16 lines
312 B
JavaScript
16 lines
312 B
JavaScript
const { run, logError } = require('./index')
|
|
|
|
module.exports.run = (args, binName) => {
|
|
return new Promise((resolve, reject) => {
|
|
run(args, binName, res => {
|
|
if (res instanceof Error) {
|
|
reject(res)
|
|
} else {
|
|
resolve(res)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
module.exports.logError = logError
|