Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TestToolChainDemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
dsq
TestToolChainDemo
Commits
9b517c53
Commit
9b517c53
authored
Apr 13, 2026
by
qq_38816927
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
清除
parent
277f7dff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
cleanHarmonyAppEntryBuildsAndNativeLibs.bat
cleanHarmonyAppEntryBuildsAndNativeLibs.bat
+12
-0
build.gradle.kts
composeApp/build.gradle.kts
+1
-1
runOhosApp-Win.bat
runscript/runOhosApp-Win.bat
+4
-0
No files found.
cleanHarmonyAppEntryBuildsAndNativeLibs.bat
0 → 100644
View file @
9b517c53
@echo off
setlocal
cd /d "%~dp0"
rem 与 :composeApp:cleanHarmonyAppEntryBuildsAndNativeLibs 相同:存在则整目录删除
if exist "harmonyApp\entry\build" rmdir /s /q "harmonyApp\entry\build"
if exist "harmonyApp\entry\libs\arm64-v8a" rmdir /s /q "harmonyApp\entry\libs\arm64-v8a"
if exist "harmonyApp\entry\libs\x86_64" rmdir /s /q "harmonyApp\entry\libs\x86_64"
if exist "harmonyApp\entry\src\main\cpp\include" rmdir /s /q "harmonyApp\entry\src\main\cpp\include"
endlocal
composeApp/build.gradle.kts
View file @
9b517c53
...
...
@@ -205,7 +205,7 @@ tasks.register("cleanHarmonyAppEntryBuildsAndNativeLibs") {
// 为不同类型(debug、release)OHOS构建注册Copy任务并发布到Harmony App目录
arrayOf
(
"debug"
,
"release"
).
forEach
{
type
->
tasks
.
register
<
Copy
>(
"publish${type.capitalizeUS()}BinariesToHarmonyApp"
)
{
dependsOn
(
"cleanHarmonyAppEntryBuildsAndNativeLibs"
)
//
dependsOn("cleanHarmonyAppEntryBuildsAndNativeLibs")
group
=
"harmony"
// 归类到harmony任务组
dependsOn
(
"link${type.capitalizeUS()}SharedOhosArm64"
,
"link${type.capitalizeUS()}SharedOhosX64"
)
duplicatesStrategy
=
DuplicatesStrategy
.
INCLUDE
...
...
runscript/runOhosApp-Win.bat
View file @
9b517c53
...
...
@@ -50,6 +50,10 @@ goto parse
if "!PLATFORM!"=="" set "PLATFORM=%DEFAULT_PLATFORM%"
if "!TARGET_ID!"=="" set "TARGET_ID=%DEFAULT_TARGET_ID%"
REM 与 :composeApp:cleanHarmonyAppEntryBuildsAndNativeLibs 一致,清理 harmonyApp/entry 中间目录(脚本在仓库根目录)
call "%~dp0..\cleanHarmonyAppEntryBuildsAndNativeLibs.bat"
if errorlevel 1 exit /b %errorlevel%
REM Record script start time (epoch seconds for elapsed calculation)
for /f %%t in ('powershell -NoProfile -Command "[int][double]::Parse((Get-Date -UFormat '%%s'))"') do set START_TIME=%%t
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment