Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
51cb7a5299 | |||
068eb7017f | |||
bb4966dca7 | |||
e981d1b95d |
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"appref": "v0.1.57"
|
"appref": "v0.2.3"
|
||||||
}
|
}
|
||||||
|
@ -98,11 +98,13 @@ export function deployCoreAsync(resp: pxtc.CompileResult, isCli = false) {
|
|||||||
resp.outfiles[pxtc.BINARY_UF2] = btoa(data)
|
resp.outfiles[pxtc.BINARY_UF2] = btoa(data)
|
||||||
|
|
||||||
let saveUF2Async = () => {
|
let saveUF2Async = () => {
|
||||||
if (isCli || !pxt.commands.saveOnlyAsync) {
|
if (pxt.commands && pxt.commands.electronDeployAsync) {
|
||||||
return Promise.resolve()
|
return pxt.commands.electronDeployAsync(resp);
|
||||||
} else {
|
|
||||||
return pxt.commands.saveOnlyAsync(resp)
|
|
||||||
}
|
}
|
||||||
|
if (!isCli && pxt.commands && pxt.commands.saveOnlyAsync) {
|
||||||
|
return pxt.commands.saveOnlyAsync(resp);
|
||||||
|
}
|
||||||
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (noHID) return saveUF2Async()
|
if (noHID) return saveUF2Async()
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pxt-ev3",
|
"name": "pxt-ev3",
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pxt-ev3",
|
"name": "pxt-ev3",
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"description": "LEGO MINDSTORMS EV3 for Microsoft MakeCode",
|
"description": "LEGO MINDSTORMS EV3 for Microsoft MakeCode",
|
||||||
"private": true,
|
"private": true,
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@ -40,7 +40,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"pxt-common-packages": "0.23.15",
|
"pxt-common-packages": "0.23.15",
|
||||||
"pxt-core": "3.18.17"
|
"pxt-core": "3.19.4"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node node_modules/pxt-core/built/pxt.js travis"
|
"test": "node node_modules/pxt-core/built/pxt.js travis"
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
"useUF2": true,
|
"useUF2": true,
|
||||||
"useELF": true,
|
"useELF": true,
|
||||||
"hasHex": true,
|
"hasHex": true,
|
||||||
"deployDrives": ".*",
|
"deployDrives": "EV3",
|
||||||
"deployFileMarker": "INFO_UF2.TXT",
|
"deployFileMarker": "INFO_UF2.TXT",
|
||||||
"driveName": "EV3",
|
"driveName": "EV3",
|
||||||
"flashCodeAlign": 256,
|
"flashCodeAlign": 256,
|
||||||
|
Reference in New Issue
Block a user