mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-24 19:25:12 +03:00
20 lines
450 B
JavaScript
20 lines
450 B
JavaScript
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
const { run, logError } = require('./index')
|
|
|
|
module.exports.run = (args, binName) => {
|
|
return new Promise((resolve, reject) => {
|
|
run(args, binName, (error, res) => {
|
|
if (error) {
|
|
reject(error)
|
|
} else {
|
|
resolve(res)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
module.exports.logError = logError
|