| Index: Info.plist.tmpl |
| =================================================================== |
| new file mode 100644 |
| --- /dev/null |
| +++ b/Info.plist.tmpl |
| @@ -0,0 +1,131 @@ |
| +<?xml version="1.0" encoding="UTF-8"?> |
| +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| +<plist version="1.0"> |
| +<dict> |
| + <key>Author</key> |
| + <string>{{ author }}</string> |
| + <key>CFBundleDisplayName</key> |
| + <string>{{ name }}</string> |
| + <key>CFBundleIdentifier</key> |
| + <string>{{ identifier }}</string> |
| + <key>CFBundleInfoDictionaryVersion</key> |
| + <string>6.0</string> |
| + <key>CFBundleShortVersionString</key> |
| + <string>{{ version }}</string> |
| + <key>CFBundleVersion</key> |
| + <string>{{ version }}</string> |
| + <key>Chrome</key> |
| + <dict> |
| + <key>Database Quota</key> |
| + <real>104857600</real> |
| + <key>Global Page</key> |
| + <string>background.html</string> |
| +{%- if menus %} |
| + <key>Menus</key> |
| + <array> |
| +{%- for identifier, items in menus.iteritems() %} |
| + <dict> |
| + <key>Identifier</key> |
| + <string>{{ identifier }}</string> |
| + <key>Menu Items</key> |
| + <array> |
| +{%- for identifier, props in items.iteritems() %} |
| + <dict> |
| + <key>Identifier</key> |
| + <string>{{ identifier }}</string> |
| +{%- for key, value in props.iteritems() %} |
| + <key>{{ key }}</key> |
| + {{ value }} |
| +{%- endfor %} |
| + </dict> |
| +{%- endfor %} |
| + </array> |
| + </dict> |
| +{%- endfor %} |
| + </array> |
| +{%- endif %} |
| +{%- if popovers %} |
| + <key>Popovers</key> |
| + <array> |
| +{%- for identifier, props in popovers.iteritems() %} |
| + <dict> |
| + <key>Identifier</key> |
| + <string>{{ identifier }}</string> |
| +{%- for key, value in props.iteritems() %} |
| + <key>{{ key }}</key> |
| + {{ value }} |
| +{%- endfor %} |
| + </dict> |
| +{%- endfor %} |
| + </array> |
| +{%- endif %} |
| +{%- if toolbarItems %} |
| + <key>Toolbar Items</key> |
| + <array> |
| +{%- for identifier, props in toolbarItems.iteritems() %} |
| + <dict> |
| + <key>Identifier</key> |
| + <string>{{ identifier }}</string> |
| +{%- for key, value in props.iteritems() %} |
| + <key>{{ key }}</key> |
| + {{ value }} |
| +{%- endfor %} |
| + </dict> |
| +{%- endfor %} |
| + </array> |
| +{%- endif %} |
| + </dict> |
| + <key>Content</key> |
| + <dict> |
| + <key>Scripts</key> |
| + <dict> |
| + <key>End</key> |
| + <array> |
| +{%- for script in contentScripts.end %} |
| + <string>{{ script }}</string> |
| +{%- endfor %} |
| + </array> |
| + <key>Start</key> |
| + <array> |
| +{%- for script in contentScripts.start %} |
| + <string>{{ script }}</string> |
| +{%- endfor %} |
| + </array> |
| + </dict> |
| + </dict> |
| + <key>ExtensionInfoDictionaryVersion</key> |
| + <string>1.0</string> |
| + <key>Permissions</key> |
| + <dict> |
| + <key>Website Access</key> |
| + <dict> |
| +{%- if allowedDomains and not allowAllDomains %} |
| + <key>Allowed Domains</key> |
| + <array> |
| +{%- for domain in allowedDomains %} |
| + <string>{{ domain }}</string> |
| +{%- endfor %} |
| + </array> |
| +{%- endif %} |
| + <key>Include Secure Pages</key> |
| +{%- if allowSecurePages %} |
| + <true/> |
| +{%- else %} |
| + <false/> |
| +{%- endif %} |
| + <key>Level</key> |
| +{%- if allowAllDomains %} |
| + <string>All</string> |
| +{%- elif allowedDomains %} |
| + <string>Some</string> |
| +{%- else %} |
| + <string>None</string> |
| +{%- endif %} |
| + </dict> |
| + </dict> |
| + <key>Description</key> |
| + <string>{{ description }}</string> |
| + <key>Website</key> |
| + <string>{{ website }}</string> |
| +</dict> |
| +</plist> |