提交 e3135ef2 编写于 作者: K Knine

LJWT;增加 obs-studio-node

上级 cc2569e0
...@@ -33,4 +33,5 @@ function 测试hmc() { ...@@ -33,4 +33,5 @@ function 测试hmc() {
console.log(procList) console.log(procList)
} }
测试hmc() 测试ffi_napi()
\ No newline at end of file // 测试hmc()
\ No newline at end of file
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
"dependencies": { "dependencies": {
"ffi-napi": "^4.0.3", "ffi-napi": "^4.0.3",
"hmc-win32": "^1.3.9", "hmc-win32": "^1.3.9",
"obs-studio-node": "^0.10.10",
"win32-api": "^20.4.1" "win32-api": "^20.4.1"
} }
}, },
...@@ -99,6 +100,11 @@ ...@@ -99,6 +100,11 @@
"node-gyp-build-test": "build-test.js" "node-gyp-build-test": "build-test.js"
} }
}, },
"node_modules/obs-studio-node": {
"version": "0.10.10",
"resolved": "https://registry.npmmirror.com/obs-studio-node/-/obs-studio-node-0.10.10.tgz",
"integrity": "sha512-wOdtv15Acrg2+KLC62y1iA4SeHGk6P/e8FU0L0Dhf7jVXlsrVInEcXA7UWP0/OocSNEfLnF0WswelZV1ryLWDQ=="
},
"node_modules/ref-napi": { "node_modules/ref-napi": {
"version": "3.0.3", "version": "3.0.3",
"resolved": "https://registry.npmmirror.com/ref-napi/-/ref-napi-3.0.3.tgz", "resolved": "https://registry.npmmirror.com/ref-napi/-/ref-napi-3.0.3.tgz",
...@@ -256,6 +262,11 @@ ...@@ -256,6 +262,11 @@
"resolved": "https://registry.npmmirror.com/node-gyp-build/-/node-gyp-build-4.6.1.tgz", "resolved": "https://registry.npmmirror.com/node-gyp-build/-/node-gyp-build-4.6.1.tgz",
"integrity": "sha512-24vnklJmyRS8ViBNI8KbtK/r/DmXQMRiOMXTNz2nrTnAYUwjmEEbnnpB/+kt+yWRv73bPsSPRFddrcIbAxSiMQ==" "integrity": "sha512-24vnklJmyRS8ViBNI8KbtK/r/DmXQMRiOMXTNz2nrTnAYUwjmEEbnnpB/+kt+yWRv73bPsSPRFddrcIbAxSiMQ=="
}, },
"obs-studio-node": {
"version": "0.10.10",
"resolved": "https://registry.npmmirror.com/obs-studio-node/-/obs-studio-node-0.10.10.tgz",
"integrity": "sha512-wOdtv15Acrg2+KLC62y1iA4SeHGk6P/e8FU0L0Dhf7jVXlsrVInEcXA7UWP0/OocSNEfLnF0WswelZV1ryLWDQ=="
},
"ref-napi": { "ref-napi": {
"version": "3.0.3", "version": "3.0.3",
"resolved": "https://registry.npmmirror.com/ref-napi/-/ref-napi-3.0.3.tgz", "resolved": "https://registry.npmmirror.com/ref-napi/-/ref-napi-3.0.3.tgz",
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
"dependencies": { "dependencies": {
"ffi-napi": "^4.0.3", "ffi-napi": "^4.0.3",
"hmc-win32": "^1.3.9", "hmc-win32": "^1.3.9",
"obs-studio-node": "^0.10.10",
"win32-api": "^20.4.1" "win32-api": "^20.4.1"
} }
} }
// J:\_ALL\CODE\gitee\constellations\Capricorn\_JOB\HE\2023-10-09--electronTools\src\renderer\utils\my\index.js
// 打开cmd
function openCmd(cmd, options) {
const exec = require('child_process').exec
var _cmd = 'start cmd /k ' + cmd
console.log(_cmd, options)
exec(_cmd, options)
}
// 打开外链
function openExternal(link) {
if (process) {
const { shell } = require('electron')
console.log(link)
shell.openExternal(link)
} else {
window.open(link)
// const exLinksBtn = document.getElementById('open-ex-links')
// exLinksBtn.addEventListener('click', (event) => {
// shell.openExternal('http://electron.atom.io')
// })
}
}
// module.exports = {
export {
openCmd,
openExternal
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册