File tree Expand file tree Collapse file tree 11 files changed +22
-15
lines changed
Expand file tree Collapse file tree 11 files changed +22
-15
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ const path = require('path');
55const srcDir = __dirname || "" ;
66// 确保目标目录有值,空字符串会导致解压到当前目录
77let destDir = process . env . AILY_TOOLS_PATH || "" ;
8- const parentDir = '[email protected] ' ; 8+ const packageJson = require ( './package.json' ) ;
9+ const parentDir = `esp32-arduino-libs@${ packageJson . version } ` ;
910const targetName = "esp32" ;
1011
1112// 使用传统的回调式 API 并用 Promise 包装
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ const path = require('path');
55const srcDir = __dirname || "" ;
66// 确保目标目录有值,空字符串会导致解压到当前目录
77let destDir = process . env . AILY_TOOLS_PATH || "" ;
8- const parentDir = '[email protected] ' ; 8+ const packageJson = require ( './package.json' ) ;
9+ const parentDir = `esp32-arduino-libs@${ packageJson . version } ` ;
910const targetName = "esp32c3" ;
1011
1112// 使用传统的回调式 API 并用 Promise 包装
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const _7zaPath = process.env.AILY_7ZA_PATH || "";
1313const zipDownloadBaseUrl = process . env . AILY_ZIP_URL + '/tools' ;
1414const packageJson = require ( './package.json' ) ;
1515const parentDir = `esp32-arduino-libs@${ packageJson . version } ` ;
16- const targetName = "esp32c3 "
16+ const targetName = "esp32c6 "
1717
1818function getZipFileName ( ) {
1919 // 读取package.json文件,获取name和version
Original file line number Diff line number Diff line change @@ -5,8 +5,9 @@ const path = require('path');
55const srcDir = __dirname || "" ;
66// 确保目标目录有值,空字符串会导致解压到当前目录
77let destDir = process . env . AILY_TOOLS_PATH || "" ;
8- const parentDir = '[email protected] ' ; 9- const targetName = "esp32c3" ;
8+ const packageJson = require ( './package.json' ) ;
9+ const parentDir = `esp32-arduino-libs@${ packageJson . version } ` ;
10+ const targetName = "esp32c6" ;
1011
1112// 使用传统的回调式 API 并用 Promise 包装
1213function readdir ( dir ) {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const _7zaPath = process.env.AILY_7ZA_PATH || "";
1313const zipDownloadBaseUrl = process . env . AILY_ZIP_URL + '/tools' ;
1414const packageJson = require ( './package.json' ) ;
1515const parentDir = `esp32-arduino-libs@${ packageJson . version } ` ;
16- const targetName = "esp32c3 "
16+ const targetName = "esp32h2 "
1717
1818function getZipFileName ( ) {
1919 // 读取package.json文件,获取name和version
Original file line number Diff line number Diff line change @@ -5,8 +5,9 @@ const path = require('path');
55const srcDir = __dirname || "" ;
66// 确保目标目录有值,空字符串会导致解压到当前目录
77let destDir = process . env . AILY_TOOLS_PATH || "" ;
8- const parentDir = '[email protected] ' ; 9- const targetName = "esp32c3" ;
8+ const packageJson = require ( './package.json' ) ;
9+ const parentDir = `esp32-arduino-libs@${ packageJson . version } ` ;
10+ const targetName = "esp32h2" ;
1011
1112// 使用传统的回调式 API 并用 Promise 包装
1213function readdir ( dir ) {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const _7zaPath = process.env.AILY_7ZA_PATH || "";
1313const zipDownloadBaseUrl = process . env . AILY_ZIP_URL + '/tools' ;
1414const packageJson = require ( './package.json' ) ;
1515const parentDir = `esp32-arduino-libs@${ packageJson . version } ` ;
16- const targetName = "esp32c3 "
16+ const targetName = "esp32p4 "
1717
1818function getZipFileName ( ) {
1919 // 读取package.json文件,获取name和version
Original file line number Diff line number Diff line change @@ -5,8 +5,9 @@ const path = require('path');
55const srcDir = __dirname || "" ;
66// 确保目标目录有值,空字符串会导致解压到当前目录
77let destDir = process . env . AILY_TOOLS_PATH || "" ;
8- const parentDir = '[email protected] ' ; 9- const targetName = "esp32c3" ;
8+ const packageJson = require ( './package.json' ) ;
9+ const parentDir = `esp32-arduino-libs@${ packageJson . version } ` ;
10+ const targetName = "esp32p4" ;
1011
1112// 使用传统的回调式 API 并用 Promise 包装
1213function readdir ( dir ) {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const _7zaPath = process.env.AILY_7ZA_PATH || "";
1313const zipDownloadBaseUrl = process . env . AILY_ZIP_URL + '/tools' ;
1414const packageJson = require ( './package.json' ) ;
1515const parentDir = `esp32-arduino-libs@${ packageJson . version } ` ;
16- const targetName = "esp32c3 "
16+ const targetName = "esp32s2 "
1717
1818function getZipFileName ( ) {
1919 // 读取package.json文件,获取name和version
Original file line number Diff line number Diff line change @@ -5,8 +5,9 @@ const path = require('path');
55const srcDir = __dirname || "" ;
66// 确保目标目录有值,空字符串会导致解压到当前目录
77let destDir = process . env . AILY_TOOLS_PATH || "" ;
8- const parentDir = '[email protected] ' ; 9- const targetName = "esp32c3" ;
8+ const packageJson = require ( './package.json' ) ;
9+ const parentDir = `esp32-arduino-libs@${ packageJson . version } ` ;
10+ const targetName = "esp32s2" ;
1011
1112// 使用传统的回调式 API 并用 Promise 包装
1213function readdir ( dir ) {
You can’t perform that action at this time.
0 commit comments