Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: Info.plist.tmpl

Issue 11544056: Prepared buildtools for Safari (Closed)
Patch Set: Created Sept. 9, 2013, 9:25 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | background.html.tmpl » ('j') | build.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Info.plist.tmpl
===================================================================
new file mode 100644
--- /dev/null
+++ b/Info.plist.tmpl
@@ -0,0 +1,139 @@
+<?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>CFBundleDisplayName</key>
Wladimir Palant 2013/09/10 10:15:27 Nit: We generally use two spaces for indentation,
+ <string>{{ name }}</string>
+ <key>CFBundleIdentifier</key>
+ <string>{{ identifier }}</string>
Wladimir Palant 2013/09/10 10:15:27 I suggest generating the identifier automatically
Sebastian Noack 2013/09/10 12:40:43 I assumed that the templates (or buildtools in gen
Wladimir Palant 2013/09/10 14:02:12 Well, we hardcode the devbuild URLs already so the
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleShortVersionString</key>
+ <string>{{ version }}</string>
Wladimir Palant 2013/09/10 10:15:27 According to Apple documentation we shouldn't be u
+ <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() %}
Wladimir Palant 2013/09/10 10:15:27 Having Jinja tags unindented makes the whole thing
+ <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>
+{%- if author %}
+ <key>Author</key>
+ <string>{{ author }}</string>
+{%- endif %}
+{%- if website %}
+ <key>Website</key>
+ <string>{{ website }}</string>
+{%- endif %}
+{%- if updateURL %}
+ <key>Update Manifest URL</key>
+ <string>{{ updateURL }}</string>
+{%- endif %}
Wladimir Palant 2013/09/10 10:15:27 There should always be an update URL for developme
+</dict>
+</plist>
« no previous file with comments | « no previous file | background.html.tmpl » ('j') | build.py » ('J')

Powered by Google App Engine
This is Rietveld