Index: templates/edge/AppxBlockMap.xml.tmpl |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/templates/edge/AppxBlockMap.xml.tmpl |
@@ -0,0 +1,10 @@ |
+<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
+<BlockMap xmlns="http://schemas.microsoft.com/appx/2010/blockmap" HashMethod="http://www.w3.org/2001/04/xmlenc#sha256"> |
+ {% for file in files -%} |
+ <File Name="{{file.name}}" Size="{{file.size}}" LfhSize="{{file.lfh_size}}"> |
+ {% for block in file.blocks -%} |
+ <Block Hash="{{block.hash}}" {% if block.compressed_size %}Size="{{block.compressed_size}}"{% endif %}/> |
Sebastian Noack
2016/10/04 19:58:06
If it turns out that we won't need to add compress
Vasily Kuznetsov
2016/10/11 15:58:28
Done. I also removed all compression-related logic
|
+ {% endfor -%} |
+ </File> |
+ {% endfor -%} |
+</BlockMap> |