OLD | NEW |
1 {%- macro str_or_real(value) -%} | 1 {%- macro str_or_real(value) -%} |
2 {%- if value is number -%} | 2 {%- if value is number -%} |
3 <real>{{ value }}</real> | 3 <real>{{ value }}</real> |
4 {%- else -%} | 4 {%- else -%} |
5 <string>{{ value }}</string> | 5 <string>{{ value }}</string> |
6 {%- endif -%} | 6 {%- endif -%} |
7 {%- endmacro -%} | 7 {%- endmacro -%} |
8 | 8 |
9 <?xml version="1.0" encoding="UTF-8"?> | 9 <?xml version="1.0" encoding="UTF-8"?> |
10 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/
PropertyList-1.0.dtd"> | 10 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/
PropertyList-1.0.dtd"> |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 {%- endfor %} | 65 {%- endfor %} |
66 </array> | 66 </array> |
67 {%- endif %} | 67 {%- endif %} |
68 {%- if toolbarItems %} | 68 {%- if toolbarItems %} |
69 <key>Toolbar Items</key> | 69 <key>Toolbar Items</key> |
70 <array> | 70 <array> |
71 {%- for identifier, props in toolbarItems.iteritems() %} | 71 {%- for identifier, props in toolbarItems.iteritems() %} |
72 <dict> | 72 <dict> |
73 <key>Identifier</key> | 73 <key>Identifier</key> |
74 <string>{{ identifier }}</string> | 74 <string>{{ identifier }}</string> |
| 75 <key>Label</key> |
| 76 <string>{{ name }}</string> |
75 {%- for key, value in props.iteritems() %} | 77 {%- for key, value in props.iteritems() %} |
76 <key>{{ key }}</key> | 78 <key>{{ key }}</key> |
77 {{ str_or_real(value) }} | 79 {{ str_or_real(value) }} |
78 {%- endfor %} | 80 {%- endfor %} |
79 </dict> | 81 </dict> |
80 {%- endfor %} | 82 {%- endfor %} |
81 </array> | 83 </array> |
82 {%- endif %} | 84 {%- endif %} |
83 </dict> | 85 </dict> |
84 {%- if startScripts or endScripts %} | 86 {%- if startScripts or endScripts %} |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 <string> | 152 <string> |
151 {%- if not releaseBuild -%} | 153 {%- if not releaseBuild -%} |
152 https://adblockplus.org/devbuilds/{{ basename }}/updates.plist | 154 https://adblockplus.org/devbuilds/{{ basename }}/updates.plist |
153 {%- else -%} | 155 {%- else -%} |
154 {{ updateURL }} | 156 {{ updateURL }} |
155 {%- endif -%} | 157 {%- endif -%} |
156 </string> | 158 </string> |
157 {%- endif %} | 159 {%- endif %} |
158 </dict> | 160 </dict> |
159 </plist> | 161 </plist> |
OLD | NEW |