Feature(custom): always copy workflow file for macos

This commit is contained in:
Kuingsmile
2025-06-08 17:31:52 +08:00
parent 8ca0bbc682
commit 3a25da94e7
2 changed files with 15 additions and 1 deletions

15
.vscode/mcp.json vendored Normal file
View 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"]
}
}
}

View File

@@ -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) {