Skip to content

Commit

Permalink
v1.0.6 coming
Browse files Browse the repository at this point in the history
  • Loading branch information
dbuezas committed Jul 19, 2020
1 parent 6ffd704 commit 81d98d6
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 9 deletions.
Binary file added lgt8f-1.0.6.zip
Binary file not shown.
15 changes: 7 additions & 8 deletions make.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { execSync } = require("child_process");
const package = "package_lgt8fx_index.json";
const folder = "lgt8f";

const toNum = str => parseInt(str.split(".").join(""), 10);
const toNum = (str) => parseInt(str.split(".").join(""), 10);
const jsonStr = fs.readFileSync(package);

const json = JSON.parse(jsonStr);
Expand All @@ -26,9 +26,7 @@ const size = fs.statSync(archiveFileName).size.toString();
console.log(`size ${size}`);
const checksum =
"SHA-256:" +
execSync(`shasum -a 256 ${archiveFileName}`)
.toString()
.split(" ")[0];
execSync(`shasum -a 256 ${archiveFileName}`).toString().split(" ")[0];
console.log(`checksum ${checksum}`);

platforms.unshift({
Expand All @@ -45,16 +43,17 @@ platforms.unshift({
checksum,
size,
help: {
online: "https://github.com/dbuezas/LGT8fx/issues"
online: "https://github.com/dbuezas/LGT8fx/issues",
},
boards: [
{ name: "LGT8F328P-LQFP48 MiniEVB" },
{ name: "LGT8F328P-LQFP32 wemos-TTGO-XI" },
{ name: "LGT8F328P-LQFP32 MiniEVB" },
{ name: "LGT8F328D" },
{ name: "LGT8F328P-SSOP20" },
{ name: "LGT8F328D-LQFP32" },
{ name: "LGT8F328D-SSOP20" },
{ name: "LGT8F88D-SSOP20" }
]
{ name: "LGT8F88D-SSOP20" },
],
});

fs.writeFileSync(package, JSON.stringify(json, 0, 2));
38 changes: 37 additions & 1 deletion package_lgt8fx_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,42 @@
"online": "https://github.com/dbuezas/LGT8fx"
},
"platforms": [
{
"name": "LGT8fx Boards",
"architecture": "avr",
"version": "1.0.6",
"category": "lgt8fx",
"url": "https://github.com/dbuezas/lgt8fx/releases/download/v1.0.6/lgt8f-1.0.6.zip",
"archiveFileName": "lgt8f-1.0.6.zip",
"checksum": "SHA-256:e7384539898243cb013182b37780205330d61fa8c5276f512422b84b2a2f23bd",
"size": "615499",
"help": {
"online": "https://github.com/dbuezas/LGT8fx/issues"
},
"boards": [
{
"name": "LGT8F328P-LQFP48 MiniEVB"
},
{
"name": "LGT8F328P-LQFP32 wemos-TTGO-XI"
},
{
"name": "LGT8F328P-LQFP32 MiniEVB"
},
{
"name": "LGT8F328P-SSOP20"
},
{
"name": "LGT8F328D-LQFP32"
},
{
"name": "LGT8F328D-SSOP20"
},
{
"name": "LGT8F88D-SSOP20"
}
]
},
{
"name": "LGT8fx Boards",
"architecture": "avr",
Expand Down Expand Up @@ -198,4 +234,4 @@
"tools": []
}
]
}
}

0 comments on commit 81d98d6

Please sign in to comment.