mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 04:34:43 +04:00
ufbt: fixes for generated vscode project (#3547)
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -393,7 +393,9 @@ for template_file in project_template_dir.Dir(".vscode").glob("*"):
|
||||
),
|
||||
"@UFBT_APP_DIR@": PosixPathWrapper.fix_path(original_app_dir.abspath),
|
||||
"@UFBT_ROOT_DIR@": PosixPathWrapper.fix_path(Dir("#").abspath),
|
||||
"@UFBT_DEBUG_DIR@": dist_env.subst("FBT_DEBUG_DIR"),
|
||||
"@UFBT_DEBUG_DIR@": PosixPathWrapper.fix_path(
|
||||
dist_env.subst("$FBT_DEBUG_DIR")
|
||||
),
|
||||
"@UFBT_DEBUG_ELF_DIR@": PosixPathWrapper.fix_path(
|
||||
dist_env["FBT_FAP_DEBUG_ELF_ROOT"].abspath
|
||||
),
|
||||
|
||||
22
scripts/ufbt/project_template/.vscode/tasks.json
vendored
22
scripts/ufbt/project_template/.vscode/tasks.json
vendored
@@ -31,29 +31,23 @@
|
||||
"command": "ufbt -c"
|
||||
},
|
||||
{
|
||||
"label": "Flash FW (ST-Link)",
|
||||
"label": "Flash FW (SWD)",
|
||||
"group": "build",
|
||||
"type": "shell",
|
||||
"command": "ufbt FORCE=1 flash"
|
||||
},
|
||||
{
|
||||
"label": "Flash FW (blackmagic)",
|
||||
"group": "build",
|
||||
"type": "shell",
|
||||
"command": "ufbt flash_blackmagic"
|
||||
},
|
||||
{
|
||||
"label": "Flash FW (JLink)",
|
||||
"group": "build",
|
||||
"type": "shell",
|
||||
"command": "ufbt FORCE=1 jflash"
|
||||
},
|
||||
{
|
||||
"label": "Flash FW (USB, with resources)",
|
||||
"group": "build",
|
||||
"type": "shell",
|
||||
"command": "ufbt FORCE=1 flash_usb"
|
||||
},
|
||||
{
|
||||
"label": "Open Flipper CLI session",
|
||||
"group": "build",
|
||||
"type": "shell",
|
||||
"command": "ufbt cli"
|
||||
},
|
||||
{
|
||||
"label": "Update uFBT SDK",
|
||||
"group": "build",
|
||||
@@ -61,7 +55,7 @@
|
||||
"command": "ufbt update"
|
||||
},
|
||||
{
|
||||
"label": "Update VSCode config for current SDK",
|
||||
"label": "Update VSCode config",
|
||||
"group": "build",
|
||||
"type": "shell",
|
||||
"command": "ufbt vscode_dist"
|
||||
|
||||
Reference in New Issue
Block a user