Update auto_build.py paths for Atom/Sublime

2.0.x
Scott Lahteine 5 years ago
parent 473d640e88
commit 89ccd463d7

@ -7,56 +7,56 @@
"caption": "PIO Build", "caption": "PIO Build",
"command": "webdevshell", "command": "webdevshell",
"args": { "args": {
"command": "python buildroot/share/atom/auto_build.py build" "command": "python buildroot/share/vscode/auto_build.py build"
} }
}, },
{ {
"caption": "PIO Clean", "caption": "PIO Clean",
"command": "webdevshell", "command": "webdevshell",
"args": { "args": {
"command": "python buildroot/share/atom/auto_build.py clean" "command": "python buildroot/share/vscode/auto_build.py clean"
} }
}, },
{ {
"caption": "PIO Upload", "caption": "PIO Upload",
"command": "webdevshell", "command": "webdevshell",
"args": { "args": {
"command": "python buildroot/share/atom/auto_build.py upload" "command": "python buildroot/share/vscode/auto_build.py upload"
} }
}, },
{ {
"caption": "PIO Upload (traceback)", "caption": "PIO Upload (traceback)",
"command": "webdevshell", "command": "webdevshell",
"args": { "args": {
"command": "python buildroot/share/atom/auto_build.py traceback" "command": "python buildroot/share/vscode/auto_build.py traceback"
} }
}, },
{ {
"caption": "PIO Upload using Programmer", "caption": "PIO Upload using Programmer",
"command": "webdevshell", "command": "webdevshell",
"args": { "args": {
"command": "python buildroot/share/atom/auto_build.py program" "command": "python buildroot/share/vscode/auto_build.py program"
} }
}, },
{ {
"caption": "PIO Test", "caption": "PIO Test",
"command": "webdevshell", "command": "webdevshell",
"args": { "args": {
"command": "python buildroot/share/atom/auto_build.py test" "command": "python buildroot/share/vscode/auto_build.py test"
} }
}, },
{ {
"caption": "PIO Debug", "caption": "PIO Debug",
"command": "webdevshell", "command": "webdevshell",
"args": { "args": {
"command": "python buildroot/share/atom/auto_build.py debug" "command": "python buildroot/share/vscode/auto_build.py debug"
} }
}, },
{ {
"caption": "PIO Remote", "caption": "PIO Remote",
"command": "webdevshell", "command": "webdevshell",
"args": { "args": {
"command": "python buildroot/share/atom/auto_build.py remote" "command": "python buildroot/share/vscode/auto_build.py remote"
} }
} }
], ],

@ -107,10 +107,10 @@ else:
get_com_port('usbmodem', 'Description:', 13) get_com_port('usbmodem', 'Description:', 13)
# avrdude_conf_path = env.get("PIOHOME_DIR") + '/packages/toolchain-atmelavr/etc/avrdude.conf' # avrdude_conf_path = env.get("PIOHOME_DIR") + '/packages/toolchain-atmelavr/etc/avrdude.conf'
avrdude_conf_path = 'buildroot/share/atom/avrdude_macOS.conf' avrdude_conf_path = 'buildroot/share/vscode/avrdude_macOS.conf'
avrdude_exe_path = 'buildroot/share/atom/avrdude_5.10_macOS' avrdude_exe_path = 'buildroot/share/vscode/avrdude_5.10_macOS'
# source_path = env.get("PROJECTBUILD_DIR") + '/' + env.get("PIOENV") + '/firmware.hex' # source_path = env.get("PROJECTBUILD_DIR") + '/' + env.get("PIOENV") + '/firmware.hex'
source_path = '.pio/build/' + env.get("PIOENV") + '/firmware.hex' source_path = '.pio/build/' + env.get("PIOENV") + '/firmware.hex'
@ -127,10 +127,10 @@ else:
get_com_port('/dev/tty', 'Description:', 13) get_com_port('/dev/tty', 'Description:', 13)
# avrdude_conf_path = env.get("PIOHOME_DIR") + '/packages/toolchain-atmelavr/etc/avrdude.conf' # avrdude_conf_path = env.get("PIOHOME_DIR") + '/packages/toolchain-atmelavr/etc/avrdude.conf'
avrdude_conf_path = 'buildroot/share/atom/avrdude_linux.conf' avrdude_conf_path = 'buildroot/share/vscode/avrdude_linux.conf'
avrdude_exe_path = 'buildroot/share/atom/avrdude_5.10_linux' avrdude_exe_path = 'buildroot/share/vscode/avrdude_5.10_linux'
# source_path = env.get("PROJECTBUILD_DIR") + '/' + env.get("PIOENV") + '/firmware.hex' # source_path = env.get("PROJECTBUILD_DIR") + '/' + env.get("PIOENV") + '/firmware.hex'
source_path = '.pio/build/' + env.get("PIOENV") + '/firmware.hex' source_path = '.pio/build/' + env.get("PIOENV") + '/firmware.hex'

@ -12,7 +12,7 @@
{ {
"namespace": "process-palette", "namespace": "process-palette",
"action": "PIO Build", "action": "PIO Build",
"command": "python buildroot/share/atom/auto_build.py build", "command": "python buildroot/share/vscode/auto_build.py build",
"arguments": [], "arguments": [],
"cwd": "{projectPath}", "cwd": "{projectPath}",
"inputDialogs": [], "inputDialogs": [],
@ -55,7 +55,7 @@
{ {
"namespace": "process-palette", "namespace": "process-palette",
"action": "PIO Clean", "action": "PIO Clean",
"command": "python buildroot/share/atom/auto_build.py clean", "command": "python buildroot/share/vscode/auto_build.py clean",
"arguments": [], "arguments": [],
"cwd": "{projectPath}", "cwd": "{projectPath}",
"inputDialogs": [], "inputDialogs": [],
@ -98,7 +98,7 @@
{ {
"namespace": "process-palette", "namespace": "process-palette",
"action": "PIO Upload", "action": "PIO Upload",
"command": "python buildroot/share/atom/auto_build.py upload", "command": "python buildroot/share/vscode/auto_build.py upload",
"arguments": [], "arguments": [],
"cwd": "{projectPath}", "cwd": "{projectPath}",
"inputDialogs": [], "inputDialogs": [],
@ -141,7 +141,7 @@
{ {
"namespace": "process-palette", "namespace": "process-palette",
"action": "PIO Upload (traceback)", "action": "PIO Upload (traceback)",
"command": "python buildroot/share/atom/auto_build.py traceback", "command": "python buildroot/share/vscode/auto_build.py traceback",
"arguments": [], "arguments": [],
"cwd": "{projectPath}", "cwd": "{projectPath}",
"inputDialogs": [], "inputDialogs": [],
@ -184,7 +184,7 @@
{ {
"namespace": "process-palette", "namespace": "process-palette",
"action": "PIO Upload using Programmer", "action": "PIO Upload using Programmer",
"command": "python buildroot/share/atom/auto_build.py program", "command": "python buildroot/share/vscode/auto_build.py program",
"arguments": [], "arguments": [],
"cwd": "{projectPath}", "cwd": "{projectPath}",
"inputDialogs": [], "inputDialogs": [],
@ -227,7 +227,7 @@
{ {
"namespace": "process-palette", "namespace": "process-palette",
"action": "PIO Test", "action": "PIO Test",
"command": "python buildroot/share/atom/auto_build.py test", "command": "python buildroot/share/vscode/auto_build.py test",
"arguments": [], "arguments": [],
"cwd": "{projectPath}", "cwd": "{projectPath}",
"inputDialogs": [], "inputDialogs": [],
@ -270,7 +270,7 @@
{ {
"namespace": "process-palette", "namespace": "process-palette",
"action": "PIO Debug", "action": "PIO Debug",
"command": "python buildroot/share/atom/auto_build.py debug", "command": "python buildroot/share/vscode/auto_build.py debug",
"arguments": [], "arguments": [],
"cwd": "{projectPath}", "cwd": "{projectPath}",
"inputDialogs": [], "inputDialogs": [],
@ -313,7 +313,7 @@
{ {
"namespace": "process-palette", "namespace": "process-palette",
"action": "PIO Remote", "action": "PIO Remote",
"command": "python buildroot/share/atom/auto_build.py remote", "command": "python buildroot/share/vscode/auto_build.py remote",
"arguments": [], "arguments": [],
"cwd": "{projectPath}", "cwd": "{projectPath}",
"inputDialogs": [], "inputDialogs": [],

Loading…
Cancel
Save