1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-01-31 21:22:58 +08:00

update script

This commit is contained in:
jared 2019-08-03 18:03:49 +08:00
parent 815c74df00
commit 911cc9528d
2 changed files with 16 additions and 2 deletions

View File

@ -1 +1,15 @@
Get-ChildItem BasicComponent
$cur= Get-Location
$ver="1.0"
if (Test-Path qmldir) {
Clear-Content qmldir
}
Get-ChildItem -Recurse BasicComponent | ForEach-Object -Process {
if ($_ -is [System.IO.FileInfo]) {
$filePath = Resolve-Path -Relative $_.Directory
$filePath = $filePath.Remove(0, 2)
$filePath = $filePath + "\" + $_.Name
$filePath=$filePath.Replace('\', '/')
$line = ($_.BaseName, $ver, $filePath) -join " "
$line | Out-File -Append -Encoding "utf8" qmldir
}
}

View File

@ -1,4 +1,4 @@
TGradientBtn 1.0 BasicComponent/Button/TGradientBtn.qml
TGradientBtn 1.0 BasicComponent/Button/TGradientBtn.qml
TImageBtn 1.0 BasicComponent/Button/TImageBtn.qml
TImgTextBtn 1.0 BasicComponent/Button/TImgTextBtn.qml
TTextBtn 1.0 BasicComponent/Button/TTextBtn.qml