Skip to content

Commit b48f46e

Browse files
committed
Merge branch 'main' into deploy
2 parents d81bbf5 + f271f86 commit b48f46e

File tree

11 files changed

+22
-15
lines changed

11 files changed

+22
-15
lines changed

idf_esp32/uninstall.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ const path = require('path');
55
const srcDir = __dirname || "";
66
// 确保目标目录有值,空字符串会导致解压到当前目录
77
let 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}`;
910
const targetName = "esp32";
1011

1112
// 使用传统的回调式 API 并用 Promise 包装

idf_esp32c3/uninstall.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ const path = require('path');
55
const srcDir = __dirname || "";
66
// 确保目标目录有值,空字符串会导致解压到当前目录
77
let 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}`;
910
const targetName = "esp32c3";
1011

1112
// 使用传统的回调式 API 并用 Promise 包装

idf_esp32c6/postinstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const _7zaPath = process.env.AILY_7ZA_PATH || "";
1313
const zipDownloadBaseUrl = process.env.AILY_ZIP_URL + '/tools';
1414
const packageJson = require('./package.json');
1515
const parentDir = `esp32-arduino-libs@${packageJson.version}`;
16-
const targetName = "esp32c3"
16+
const targetName = "esp32c6"
1717

1818
function getZipFileName() {
1919
// 读取package.json文件,获取name和version

idf_esp32c6/uninstall.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ const path = require('path');
55
const srcDir = __dirname || "";
66
// 确保目标目录有值,空字符串会导致解压到当前目录
77
let 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 包装
1213
function readdir(dir) {

idf_esp32h2/postinstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const _7zaPath = process.env.AILY_7ZA_PATH || "";
1313
const zipDownloadBaseUrl = process.env.AILY_ZIP_URL + '/tools';
1414
const packageJson = require('./package.json');
1515
const parentDir = `esp32-arduino-libs@${packageJson.version}`;
16-
const targetName = "esp32c3"
16+
const targetName = "esp32h2"
1717

1818
function getZipFileName() {
1919
// 读取package.json文件,获取name和version

idf_esp32h2/uninstall.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ const path = require('path');
55
const srcDir = __dirname || "";
66
// 确保目标目录有值,空字符串会导致解压到当前目录
77
let 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 包装
1213
function readdir(dir) {

idf_esp32p4/postinstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const _7zaPath = process.env.AILY_7ZA_PATH || "";
1313
const zipDownloadBaseUrl = process.env.AILY_ZIP_URL + '/tools';
1414
const packageJson = require('./package.json');
1515
const parentDir = `esp32-arduino-libs@${packageJson.version}`;
16-
const targetName = "esp32c3"
16+
const targetName = "esp32p4"
1717

1818
function getZipFileName() {
1919
// 读取package.json文件,获取name和version

idf_esp32p4/uninstall.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ const path = require('path');
55
const srcDir = __dirname || "";
66
// 确保目标目录有值,空字符串会导致解压到当前目录
77
let 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 包装
1213
function readdir(dir) {

idf_esp32s2/postinstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const _7zaPath = process.env.AILY_7ZA_PATH || "";
1313
const zipDownloadBaseUrl = process.env.AILY_ZIP_URL + '/tools';
1414
const packageJson = require('./package.json');
1515
const parentDir = `esp32-arduino-libs@${packageJson.version}`;
16-
const targetName = "esp32c3"
16+
const targetName = "esp32s2"
1717

1818
function getZipFileName() {
1919
// 读取package.json文件,获取name和version

idf_esp32s2/uninstall.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ const path = require('path');
55
const srcDir = __dirname || "";
66
// 确保目标目录有值,空字符串会导致解压到当前目录
77
let 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 包装
1213
function readdir(dir) {

0 commit comments

Comments
 (0)