mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-23 18:53:33 +03:00
14 lines
266 B
JavaScript
14 lines
266 B
JavaScript
const { run } = 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)
|
|
}
|
|
})
|
|
})
|
|
}
|