build(mp-harmony): 添加components_diy和页面模块的构建配置
同时新增清理华为IDE内置node路径的脚本,以及空的权限检查文件
This commit is contained in:
@@ -83,6 +83,10 @@ const localDevConfig = ({
|
|||||||
uniacid: 206,
|
uniacid: 206,
|
||||||
domain: 'https://5g.aigc-quickapp.com/',
|
domain: 'https://5g.aigc-quickapp.com/',
|
||||||
},
|
},
|
||||||
|
'5g-165': { // 鸡肉调理品, 优惠卷显示不全,及逻辑错误
|
||||||
|
uniacid: 165,
|
||||||
|
domain: 'https://5g.aigc-quickapp.com/',
|
||||||
|
},
|
||||||
'47': { // 修改弹窗
|
'47': { // 修改弹窗
|
||||||
uniacid: 47,
|
uniacid: 47,
|
||||||
domain: 'https://5g.aigc-quickapp.com/',
|
domain: 'https://5g.aigc-quickapp.com/',
|
||||||
@@ -143,11 +147,12 @@ const localDevConfig = ({
|
|||||||
// })['5g-97']; // 大宗商品贸易,支持自定义字体大小、颜色
|
// })['5g-97']; // 大宗商品贸易,支持自定义字体大小、颜色
|
||||||
// })['5g-50']; // 燃气安全产品机器人,购物车无反应
|
// })['5g-50']; // 燃气安全产品机器人,购物车无反应
|
||||||
// })['2821']; // 离型纸硅油纸
|
// })['2821']; // 离型纸硅油纸
|
||||||
})['2482']; // 低空经济
|
// })['2482']; // 低空经济
|
||||||
// })['48']; // 离型纸硅油纸
|
// })['48']; // 离型纸硅油纸
|
||||||
// })['2485']; // 验证电子表单前后端数据一致性
|
// })['2485']; // 验证电子表单前后端数据一致性
|
||||||
// })['5g-11']; // 数码
|
// })['5g-11']; // 数码
|
||||||
// })['5g-213']; // 选择要使用的环境配置
|
// })['5g-213']; // 选择要使用的环境配置
|
||||||
|
})['5g-165']; // 鸡肉调理品, 优惠卷显示不全,及逻辑错误
|
||||||
// })['2811']; // 选择要使用的环境配置
|
// })['2811']; // 选择要使用的环境配置
|
||||||
// })['local-11']; // 选择要使用的环境配置
|
// })['local-11']; // 选择要使用的环境配置
|
||||||
// })['local-1']; // 本地
|
// })['local-1']; // 本地
|
||||||
|
|||||||
0
.trae_permission_check_15252
Normal file
0
.trae_permission_check_15252
Normal file
0
.trae_permission_check_15564
Normal file
0
.trae_permission_check_15564
Normal file
0
.trae_permission_check_6200
Normal file
0
.trae_permission_check_6200
Normal file
62
remove-huawei-node-from-path.ps1
Normal file
62
remove-huawei-node-from-path.ps1
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
$ErrorActionPreference = 'Stop'
|
||||||
|
|
||||||
|
$target = 'C:\Program Files\Huawei QuickApp IDE\resources\app\extensions\deveco-debug\lib\toolkit\nodeTool'
|
||||||
|
|
||||||
|
$before = [Environment]::GetEnvironmentVariable('Path', 'Machine')
|
||||||
|
|
||||||
|
Write-Host '=== Before: target entries in Machine PATH ==='
|
||||||
|
$before -split ';' | ForEach-Object {
|
||||||
|
if ($_.Trim() -ieq $target) {
|
||||||
|
Write-Host (" [" + $_ + "]")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$entries = $before -split ';'
|
||||||
|
$kept = New-Object System.Collections.Generic.List[string]
|
||||||
|
$removed = New-Object System.Collections.Generic.List[string]
|
||||||
|
foreach ($e in $entries) {
|
||||||
|
$t = $e.Trim()
|
||||||
|
if ($t -ieq $target) {
|
||||||
|
$removed.Add($e)
|
||||||
|
} elseif ($t -ne '') {
|
||||||
|
$kept.Add($e)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$after = [string]::Join(';', $kept.ToArray())
|
||||||
|
|
||||||
|
if ($removed.Count -eq 0) {
|
||||||
|
Write-Host 'Target entry not found, nothing to do.'
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
[Environment]::SetEnvironmentVariable('Path', $after, 'Machine')
|
||||||
|
Write-Host ''
|
||||||
|
Write-Host '=== Result ==='
|
||||||
|
Write-Host (" Removed entries: " + $removed.Count)
|
||||||
|
foreach ($r in $removed) { Write-Host (" - " + $r) }
|
||||||
|
Write-Host (" Remaining entries: " + $kept.Count)
|
||||||
|
Write-Host ' Write OK.'
|
||||||
|
} catch {
|
||||||
|
Write-Host ''
|
||||||
|
Write-Host (' Write FAILED (admin required?): ' + $_.Exception.Message)
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Host ''
|
||||||
|
Write-Host '=== Verify after write ==='
|
||||||
|
$verify = [Environment]::GetEnvironmentVariable('Path', 'Machine')
|
||||||
|
$stillThere = 0
|
||||||
|
foreach ($e in ($verify -split ';')) {
|
||||||
|
if ($e.Trim() -ieq $target) { $stillThere++ }
|
||||||
|
}
|
||||||
|
if ($stillThere -gt 0) {
|
||||||
|
Write-Host ' FAIL: target still present.'
|
||||||
|
exit 1
|
||||||
|
} else {
|
||||||
|
Write-Host ' OK: target no longer in Machine PATH.'
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Host ''
|
||||||
|
Write-Host 'Note: env var change does NOT affect already-running processes.'
|
||||||
|
Write-Host 'Reopen cmd / Git Bash / HBuilderX to see updated where node.'
|
||||||
@@ -64,6 +64,66 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "components_diy",
|
||||||
|
"srcPath": "./ascf/ascf_build/components_diy",
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"applyToProducts": [
|
||||||
|
"default"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "pages_goods",
|
||||||
|
"srcPath": "./ascf/ascf_build/pages_goods",
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"applyToProducts": [
|
||||||
|
"default"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "pages_order",
|
||||||
|
"srcPath": "./ascf/ascf_build/pages_order",
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"applyToProducts": [
|
||||||
|
"default"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "pages_promotion",
|
||||||
|
"srcPath": "./ascf/ascf_build/pages_promotion",
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"applyToProducts": [
|
||||||
|
"default"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "pages_tool",
|
||||||
|
"srcPath": "./ascf/ascf_build/pages_tool",
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"applyToProducts": [
|
||||||
|
"default"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user