mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-09-05 23:47:43 +08:00
✨ Feature(custom): always copy workflow file for macos
This commit is contained in:
Vendored
+15
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"inputs": [
|
||||||
|
// The "inputs" section defines the inputs required for the MCP server configuration.
|
||||||
|
{
|
||||||
|
"type": "promptString"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"servers": {
|
||||||
|
// The "servers" section defines the MCP servers you want to use.
|
||||||
|
"fetch": {
|
||||||
|
"command": "uvx",
|
||||||
|
"args": ["mcp-server-fetch"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -44,7 +44,6 @@ function copyFileOutsideOfElectronAsar(sourceInAsarArchive: string, destOutsideA
|
|||||||
*/
|
*/
|
||||||
function resolveMacWorkFlow() {
|
function resolveMacWorkFlow() {
|
||||||
const dest = `${os.homedir()}/Library/Services/Upload pictures with PicList.workflow`
|
const dest = `${os.homedir()}/Library/Services/Upload pictures with PicList.workflow`
|
||||||
if (fs.existsSync(dest)) return true
|
|
||||||
try {
|
try {
|
||||||
copyFileOutsideOfElectronAsar(path.join(__static, 'Upload pictures with PicList.workflow'), dest)
|
copyFileOutsideOfElectronAsar(path.join(__static, 'Upload pictures with PicList.workflow'), dest)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user