Skip to content

Commit

Permalink
better deploy tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
wysaid committed Jul 31, 2023
1 parent 3dae8cc commit e7df0ce
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
2 changes: 2 additions & 0 deletions vscode_tasks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7df0ce

Please sign in to comment.