fix multi apps

This commit is contained in:
tsuky_chen
2024-03-08 20:36:34 +08:00
parent 5abdf207a9
commit 4070b41fbd
11 changed files with 96 additions and 58 deletions

View File

@@ -34,13 +34,20 @@
{
"type": "execute",
"parameters": {
"command": ["mkdir", "-p", "/home/user/Projects"]
"command": [
"mkdir",
"-p",
"/home/user/Projects"
]
}
},
{
"type": "launch",
"parameters": {
"command": ["nautilus", "/home/user/Projects"]
"command": [
"nautilus",
"/home/user/Projects"
]
}
}
],
@@ -90,32 +97,52 @@
"rules": {
"expect": [
{
"key": ["name"],
"key": [
"name"
],
"method": "eq",
"ref": "happy-extension"
},
{
"key": ["version"],
"key": [
"version"
],
"method": "eq",
"ref": "0.0.1"
},
{
"key": ["background", "scripts"],
"key": [
"background",
"scripts"
],
"method": "eq",
"ref": ["background_script.js"]
"ref": [
"background_script.js"
]
},
{
"key": ["browser_action", "default_icon"],
"key": [
"browser_action",
"default_icon"
],
"method": "eq",
"ref": {"64": "icons/icon.png"}
"ref": {
"64": "icons/icon.png"
}
},
{
"key": ["browser_action", "default_popup"],
"key": [
"browser_action",
"default_popup"
],
"method": "eq",
"ref": "browserAction/index.html"
},
{
"key": ["browser_action", "default_title"],
"key": [
"browser_action",
"default_title"
],
"method": "eq",
"ref": "happy-extension"
}
@@ -144,4 +171,4 @@
}
]
}
}
}