1 Star 0 Fork 1

沃德天呐/CAAV5Utility

forked from qiangwushuang/CAAV5Utility 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
PublishInterface.ps1 2.05 KB
一键复制 编辑 原始数据 按行查看 历史
qiangwushuang 提交于 2024-05-29 23:02 . 初始化
# 自动发布接口文件到指定目录下
$PublishFrameworks = New-Object -TypeName System.Collections.ArrayList
$PublishFrameworks.Add("CommonFw")
$PublishFrameworks.Add("DatabaseFw")
$PublishFrameworks.Add("Base64Fw")
$PublishFrameworks.Add("DialogExt")
$PublishFrameworks.Add("ExcelOperatorFw")
$PublishFrameworks.Add("HTTPFw")
$PublishFrameworks.Add("JsonFw")
$PublishFrameworks.Add("MD5Fw")
$PublishFrameworks.Add("LicFw")
# 定义接口发布目录
$PublishPath = "C:\DS\CAAV5Utility"
if (Test-Path "$PublishPath\win_b64") {
Remove-Item "$PublishPath\win_b64" -Force -Recurse
}
foreach($FrameworkName in $PublishFrameworks)
{
$PublishFramework = ".\$FrameworkName"
# 复制资源文件
if(Test-Path "$PublishFramework\CNext\*")
{
Copy-Item -Path "$PublishFramework\CNext\*" -Destination ".\win_b64" -Recurse -Force
}
# 删除不必要的文件
Remove-Item ".\win_b64\code\dictionary\*DirForBinOMDictionary" -Force -Recurse
Remove-Item ".\win_b64\code\dictionary\*SysCtrlWNTN.ctrl" -Force -Recurse
Remove-Item ".\win_b64\code\bin\*.exe" -Force
# 删除已有的接口目录
if (Test-Path "$PublishPath$PublishFramework") {
Remove-Item "$PublishPath$PublishFramework" -Force -Recurse
}
# 获取接口下的module目录名称
$ChilePath = Get-ChildItem -Path $PublishFramework
foreach($path In $ChilePath)
{
$pathfullname = $path.FullName
$pathname = $path.Name
if($path.Name -like "*.m")
{
mkdir "$PublishPath\$PublishFramework\$pathname" -Force
Copy-Item -Path "$pathfullname\Imakefile.mk" -Destination "$PublishPath\$PublishFramework\$pathname\Imakefile.mk" -Force
}
elseif($path.Name -like "IdentityCard" -or $path.Name -like "Private*" -or $path.Name -like "Protected*" -or $path.Name -like "Public*" -or $path.Name -like "various")
{
Copy-Item -Path $pathfullname -Destination "$PublishPath\$PublishFramework\$pathname" -Force -Recurse
}
}
}
# win_b64目录
Copy-Item ".\win_b64" -Destination "$PublishPath\win_b64" -Force -Recurse
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/debuger94/CAAV5Utility.git
[email protected]:debuger94/CAAV5Utility.git
debuger94
CAAV5Utility
CAAV5Utility
main

搜索帮助