| 152 | } |
| 153 | |
| 154 | async function copyCapacitorConfig(config: Config, nativeAbsDir: string) { |
| 155 | const nativeRelDir = relative(config.app.rootDir, nativeAbsDir); |
| 156 | const nativeConfigFile = 'capacitor.config.json'; |
| 157 | const nativeConfigFilePath = join(nativeAbsDir, nativeConfigFile); |
| 158 | |
| 159 | await runTask(`Creating ${c.strong(nativeConfigFile)} in ${nativeRelDir}`, async () => { |
| 160 | delete (config.app.extConfig.android as any)?.buildOptions; |
| 161 | delete (config.app.extConfig.ios as any)?.buildOptions; |
| 162 | await writeJSON(nativeConfigFilePath, config.app.extConfig, { |
| 163 | spaces: '\t', |
| 164 | }); |
| 165 | }); |
| 166 | } |
| 167 | |
| 168 | async function copyWebDir(config: Config, nativeAbsDir: string, webAbsDir: string) { |
| 169 | const webRelDir = basename(webAbsDir); |