cocos_android/.vscode/tasks.json
2023-10-19 13:33:02 +08:00

133 lines
3.1 KiB
JSON

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "AppSignKey",
"type": "shell",
"command": "keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias",
"windows": {
"command": "cd gitoscandroid; del my-release-key.jks; keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias"
},
"group": "test",
"presentation": {
"reveal": "always"
}
},
{
"label": "Clean:App",
"type": "shell",
"command": "${workspaceRoot}/gradlew app:clean",
"windows": {
"command": "${workspaceRoot}\\gradlew.bat clean "
},
"group": "test",
"presentation": {
"reveal": "always"
}
},
{
"label": "Clean:Unity",
"type": "shell",
"command": "${workspaceRoot}/gradlew unityLibrary:clean",
"windows": {
"command": "${workspaceRoot}\\gradlew.bat clean "
},
"group": "test",
"presentation": {
"reveal": "always"
}
},
{
"label": "Clean:Cocos",
"type": "shell",
"command": "${workspaceRoot}/gradlew libcocos2dx:clean",
"windows": {
"command": "${workspaceRoot}\\gradlew.bat clean "
},
"group": "test",
"presentation": {
"reveal": "always"
}
},
{
"label": "CleanAll",
"type": "shell",
"command": "${workspaceRoot}/gradlew clean",
"windows": {
"command": "${workspaceRoot}\\gradlew.bat clean "
},
"group": "test",
"presentation": {
"reveal": "always"
}
},
{
"label": "BuildDebugApp",
"type": "shell",
"command": "${workspaceRoot}/gradlew assembleDebug ",
"windows": {
"command": "${workspaceRoot}\\gradlew.bat assembleDebug "
},
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always"
},
"problemMatcher": []
},
{
"label": "InstallDebugApp",
"type": "shell",
"command": "${workspaceRoot}/gradlew installDebug ",
"windows": {
"command": "${workspaceRoot}\\gradlew.bat installDebug "
},
"group": "test",
"presentation": {
"reveal": "always"
}
},
{
"label": "InstallReleaseApp",
"type": "shell",
"command": "${workspaceRoot}/gradlew installRelease ",
"windows": {
"command": "${workspaceRoot}\\gradlew.bat installRelease "
},
"group": "test",
"presentation": {
"reveal": "always"
}
},
{
"label": "RunDebugApp",
"type": "shell",
"command": "adb shell am start com.cege.games.release/.MainActivity",
"windows": {
"command": "adb shell am start com.cege.games.release/.MainActivity "
},
"group": "test",
"presentation": {
"reveal": "always"
},
},
{
"label": "ShowDebugLogcat",
"type": "shell",
"command": "adb logcat '*:V AudioManagerExtImpl:S' -b all -v color --pid=$(adb shell pidof -s com.cege.games.release)",
"group": "test",
"presentation": {
"reveal": "always"
},
},
{
"label": "Build&Run",
"dependsOrder": "sequence",
"dependsOn": ["BuildDebugApp", "InstallDebugApp", "RunDebugApp", "ShowDebugLogcat"]
}
]
}