代码拉取完成,页面将自动刷新
同步操作将从 qiangwushuang/CAAV5Utility 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# 自动发布接口文件到指定目录下
$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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。