From e7df0ce3cd26f95a01f42c80e480ba0f948013a0 Mon Sep 17 00:00:00 2001 From: wysaid Date: Tue, 1 Aug 2023 02:07:38 +0800 Subject: [PATCH] better deploy tasks --- .vscode/tasks.json | 25 ++++++++++++++++++++----- vscode_tasks.sh | 2 ++ 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 3b5f8398..7ef8aaa7 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -225,21 +225,36 @@ "problemMatcher": "$gcc" }, { - "label": "[Release] Publish AAR To Maven Local", + "label": "[Release] Publish AAR To Maven Local - Normal", "type": "shell", "command": "bash", "args": [ "vscode_tasks.sh", + "--enable-cmake", + "--enable-video-module", "--publish", ], "options": { "cwd": "${workspaceFolder}" }, "group": "build", - "problemMatcher": "$gcc", - "dependsOn": [ - "[Release] Enable CMake And Build Project With CMake" - ] + "problemMatcher": "$gcc" + }, + { + "label": "[Release] Publish AAR To Maven Local - Disable Video Module", + "type": "shell", + "command": "bash", + "args": [ + "vscode_tasks.sh", + "--enable-cmake", + "--disable-video-module", + "--publish", + ], + "options": { + "cwd": "${workspaceFolder}" + }, + "group": "build", + "problemMatcher": "$gcc" } ] } \ No newline at end of file diff --git a/vscode_tasks.sh b/vscode_tasks.sh index 86453d07..c53e1369 100755 --- a/vscode_tasks.sh +++ b/vscode_tasks.sh @@ -172,6 +172,8 @@ while [[ $# > 0 ]]; do ;; --publish) echo "publish" + git clean -fdx library + changeProperty "local.properties" '^usingCMakeCompileDebug=' 's/usingCMakeCompileDebug=.*/usingCMakeCompileDebug=false/' 'usingCMakeCompileDebug=false' changeProperty "local.properties" '^deployArtifacts=' 's/deployArtifacts=.*/deployArtifacts=true/' 'disableVideoModule=true' ./gradlew assembleRelease publish shift