105 lines
3.0 KiB
Plaintext
105 lines
3.0 KiB
Plaintext
|
{
|
||
|
"New app String": {
|
||
|
"prefix": "app",
|
||
|
"scope": "json,jsonc",
|
||
|
"body": [
|
||
|
"{",
|
||
|
"\t\"version\": \"$1\",",
|
||
|
"\t\"description\": \"$2\",",
|
||
|
"\t\"homepage\": \"$3\",",
|
||
|
"\t\"license\": {\"identifier\": \"$4\"},",
|
||
|
"\t\"notes\": \"$5\",",
|
||
|
"\t\"depends\": \"$6\",",
|
||
|
"\t\"url\": \"$7\",",
|
||
|
"\t\"hash\": \"$8\",",
|
||
|
"\t\"bin\": \"$9\",",
|
||
|
"\t\"shortcuts\": [",
|
||
|
"\t\t[",
|
||
|
"\t\t\t\"$10.exe\",",
|
||
|
"\t\t\t\"$11\"",
|
||
|
"\t\t]",
|
||
|
"\t],",
|
||
|
"\t\"checkver\":\"$12\",",
|
||
|
"\t\"autoupdate\": {",
|
||
|
"\t\t\"url\": \"$13\"",
|
||
|
"\t}",
|
||
|
"}\n",
|
||
|
],
|
||
|
},
|
||
|
"New app Arch": {
|
||
|
"prefix": "appArch",
|
||
|
"scope": "json,jsonc",
|
||
|
"body": [
|
||
|
"{",
|
||
|
"\t\"version\": \"$1\",",
|
||
|
"\t\"description\": \"$2\",",
|
||
|
"\t\"homepage\": \"$3\",",
|
||
|
"\t\"license\": {\"identifier\": \"$4\"},",
|
||
|
"\t\"notes\": \"$5\",",
|
||
|
"\t\"depends\": \"$6\",",
|
||
|
"\t\"architecture\": {",
|
||
|
"\t\t\"64bit\": {",
|
||
|
"\t\t\t\"url\": \"$7\",",
|
||
|
"\t\t\t\"hash\": \"$8\"",
|
||
|
"\t\t},",
|
||
|
"\t\t\"32bit\": {",
|
||
|
"\t\t\t\"url\": \"$9\",",
|
||
|
"\t\t\t\"hash\": \"$10\"",
|
||
|
"\t\t}",
|
||
|
"\t},",
|
||
|
"\t\"bin\": \"$11\",",
|
||
|
"\t\"shortcuts\": [",
|
||
|
"\t\t[",
|
||
|
"\t\t\t\"$12.exe\",",
|
||
|
"\t\t\t\"$13\"",
|
||
|
"\t\t]",
|
||
|
"\t]",
|
||
|
"}\n",
|
||
|
],
|
||
|
},
|
||
|
"New Architecture": {
|
||
|
"prefix": "arch",
|
||
|
"scope": "json,jsonc",
|
||
|
"body": [
|
||
|
"\"architecture\": {",
|
||
|
"\t\"64bit\": {",
|
||
|
"\t\t\"url\": \"$1\",",
|
||
|
"\t\t\"hash\": \"$2\"",
|
||
|
"\t},",
|
||
|
"\t\"32bit\": {",
|
||
|
"\t\t\"url\": \"$3\",",
|
||
|
"\t\t\"hash\": \"$4\"",
|
||
|
"\t}",
|
||
|
"},",
|
||
|
],
|
||
|
},
|
||
|
"New Autoupdate with Arch": {
|
||
|
"prefix": "upAr",
|
||
|
"scope": "json,jsonc",
|
||
|
"body": [
|
||
|
"\"autoupdate\": {",
|
||
|
"\t\"architecture\": {",
|
||
|
"\t\t\"64bit\": {",
|
||
|
"\t\t\t\"url\": \"$1\"",
|
||
|
"\t\t},",
|
||
|
"\t\t\"32bit\": {",
|
||
|
"\t\t\t\"url\": \"$2\"",
|
||
|
"\t\t}",
|
||
|
"\t}",
|
||
|
"}",
|
||
|
],
|
||
|
},
|
||
|
"Check for existing persist file": {
|
||
|
"prefix": "persistCheck",
|
||
|
"scope": "json,jsonc",
|
||
|
"body": [
|
||
|
"\"\\$file = '$1'\",",
|
||
|
"\"if (!(Test-Path \\\"\\$persist_dir\\\\\\\\\\$file\\\")) {\",",
|
||
|
"\"\tWrite-Host 'File' \\$file 'does not exists. Creating.' -f Yellow\",",
|
||
|
"\"\t\\$CONT = @('$2')\",",
|
||
|
"\"\tSet-Content \\\"\\$dir\\\\\\\\\\$file\\\" (\\$CONT -join \\\"`r`n\\\") -Encoding Ascii\",",
|
||
|
"\"}\"",
|
||
|
],
|
||
|
},
|
||
|
}
|