Skip to content

Commit e7df0ce

Browse files
committed
better deploy tasks
1 parent 3dae8cc commit e7df0ce

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

.vscode/tasks.json

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,21 +225,36 @@
225225
"problemMatcher": "$gcc"
226226
},
227227
{
228-
"label": "[Release] Publish AAR To Maven Local",
228+
"label": "[Release] Publish AAR To Maven Local - Normal",
229229
"type": "shell",
230230
"command": "bash",
231231
"args": [
232232
"vscode_tasks.sh",
233+
"--enable-cmake",
234+
"--enable-video-module",
233235
"--publish",
234236
],
235237
"options": {
236238
"cwd": "${workspaceFolder}"
237239
},
238240
"group": "build",
239-
"problemMatcher": "$gcc",
240-
"dependsOn": [
241-
"[Release] Enable CMake And Build Project With CMake"
242-
]
241+
"problemMatcher": "$gcc"
242+
},
243+
{
244+
"label": "[Release] Publish AAR To Maven Local - Disable Video Module",
245+
"type": "shell",
246+
"command": "bash",
247+
"args": [
248+
"vscode_tasks.sh",
249+
"--enable-cmake",
250+
"--disable-video-module",
251+
"--publish",
252+
],
253+
"options": {
254+
"cwd": "${workspaceFolder}"
255+
},
256+
"group": "build",
257+
"problemMatcher": "$gcc"
243258
}
244259
]
245260
}

vscode_tasks.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ while [[ $# > 0 ]]; do
172172
;;
173173
--publish)
174174
echo "publish"
175+
git clean -fdx library
176+
changeProperty "local.properties" '^usingCMakeCompileDebug=' 's/usingCMakeCompileDebug=.*/usingCMakeCompileDebug=false/' 'usingCMakeCompileDebug=false'
175177
changeProperty "local.properties" '^deployArtifacts=' 's/deployArtifacts=.*/deployArtifacts=true/' 'disableVideoModule=true'
176178
./gradlew assembleRelease publish
177179
shift

0 commit comments

Comments
 (0)