mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-07 05:02:43 +08:00
✨ Feature(custom): always copy workflow file for macos
This commit is contained in:
15
.vscode/mcp.json
vendored
Normal file
15
.vscode/mcp.json
vendored
Normal file
@@ -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() {
|
||||
const dest = `${os.homedir()}/Library/Services/Upload pictures with PicList.workflow`
|
||||
if (fs.existsSync(dest)) return true
|
||||
try {
|
||||
copyFileOutsideOfElectronAsar(path.join(__static, 'Upload pictures with PicList.workflow'), dest)
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user