1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-12 10:33:30 +00:00

feat: Add VS Code launch/task configurations and refactor app icon and resource management.

This commit is contained in:
Tw93
2025-12-15 14:00:27 +08:00
parent 46cebd7dbb
commit 4547f5819e
28 changed files with 111 additions and 35 deletions

44
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,44 @@
{
"configurations": [
{
"type": "swift",
"request": "launch",
"name": "Debug Mole",
"args": [],
"cwd": "${workspaceFolder}/app",
"target": "Mole",
"configuration": "debug",
"preLaunchTask": "swift: Build Debug Mole (app)"
},
{
"type": "swift",
"request": "launch",
"name": "Release Mole",
"args": [],
"cwd": "${workspaceFolder}/app",
"target": "Mole",
"configuration": "release",
"preLaunchTask": "swift: Build Release Mole (app)"
},
{
"type": "swift",
"request": "launch",
"args": [],
"cwd": "${workspaceFolder:Mole}/app",
"name": "Debug Mole (app)",
"target": "Mole",
"configuration": "debug",
"preLaunchTask": "swift: Build Debug Mole (app)"
},
{
"type": "swift",
"request": "launch",
"args": [],
"cwd": "${workspaceFolder:Mole}/app",
"name": "Release Mole (app)",
"target": "Mole",
"configuration": "release",
"preLaunchTask": "swift: Build Release Mole (app)"
}
]
}

38
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,38 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "swift: Build Debug Mole (app)",
"type": "shell",
"command": "swift",
"args": ["build", "-c", "debug"],
"options": {
"cwd": "${workspaceFolder}/app"
},
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "shared"
},
"problemMatcher": ["$swiftc"]
},
{
"label": "swift: Build Release Mole (app)",
"type": "shell",
"command": "swift",
"args": ["build", "-c", "release"],
"options": {
"cwd": "${workspaceFolder}/app"
},
"group": "build",
"presentation": {
"reveal": "always",
"panel": "shared"
},
"problemMatcher": ["$swiftc"]
}
]
}