(indent, settings)
| 114 | } |
| 115 | |
| 116 | async function fixManifest(indent, settings) { |
| 117 | const destDir = getDestDir({debug: false, platform: 'firefox'}); |
| 118 | const realPath = `${destDir}/manifest.json`; |
| 119 | const manifest = await readJSON(realPath); |
| 120 | let string = JSON.stringify(manifest, null, indent); |
| 121 | if (settings === 1) { |
| 122 | string = string.replace('applications', 'browser_specific_settings'); |
| 123 | } |
| 124 | await writeFile(realPath, string); |
| 125 | return { |
| 126 | realPath, |
| 127 | archivePath: 'manifest.json', |
| 128 | }; |
| 129 | } |
| 130 | |
| 131 | async function createHashes(signatureVersion, version, order, manifest) { |
| 132 | const types = hashTypes(signatureVersion); |
no test coverage detected