mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-30 06:23:46 +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
|