104 lines
3.1 KiB
JSON
104 lines
3.1 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Deploy to vojo.chat",
|
|
"type": "shell",
|
|
"command": "npm run build && rsync -avz --delete dist/ vojo-superuser@187.127.77.124:~/vojo/cinny/",
|
|
"group": "none",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "shared",
|
|
"showReuseMessage": false
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Deploy widgets",
|
|
"type": "shell",
|
|
"command": "(cd apps/widget-telegram && npm run build && rsync -avz --delete dist/ vojo-superuser@187.127.77.124:~/vojo/widgets/telegram/) & PID1=$!; (cd apps/widget-discord && npm run build && rsync -avz --delete dist/ vojo-superuser@187.127.77.124:~/vojo/widgets/discord/) & PID2=$!; (cd apps/widget-whatsapp && npm run build && rsync -avz --delete dist/ vojo-superuser@187.127.77.124:~/vojo/widgets/whatsapp/) & PID3=$!; FAIL=0; wait $PID1 || FAIL=1; wait $PID2 || FAIL=1; wait $PID3 || FAIL=1; exit $FAIL",
|
|
"group": "none",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "shared",
|
|
"showReuseMessage": false
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Build Android APK",
|
|
"type": "shell",
|
|
"command": "npm run build:android:debug",
|
|
"group": "none",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "shared",
|
|
"showReuseMessage": false
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Deploy to Android (ADB)",
|
|
"type": "shell",
|
|
"command": "npm run build:android:debug && adb install -r android/app/build/outputs/apk/debug/app-debug.apk",
|
|
"group": "none",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "shared",
|
|
"showReuseMessage": false
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Connect to Android device (ADB)",
|
|
"type": "shell",
|
|
"command": "adb connect 192.168.1.204:5555",
|
|
"group": "none",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "shared",
|
|
"showReuseMessage": false
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Start Electron (dev)",
|
|
"type": "shell",
|
|
"command": "npm run electron:dev",
|
|
"group": "none",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "shared",
|
|
"showReuseMessage": false
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Build Electron Windows",
|
|
"type": "shell",
|
|
"command": "npm run build:electron:win",
|
|
"group": "none",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "shared",
|
|
"showReuseMessage": false
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Deploy Discord bridge",
|
|
"type": "shell",
|
|
"command": "docker build -t vojo-mautrix-discord:custom . && docker save vojo-mautrix-discord:custom | gzip | ssh vojo-superuser@187.127.77.124 'gunzip | docker load'",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/../vojo-mautrix-discord"
|
|
},
|
|
"group": "none",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "shared",
|
|
"showReuseMessage": false
|
|
},
|
|
"problemMatcher": []
|
|
}
|
|
]
|
|
}
|