Download this file
| 1 | import Foundation |
| 2 | |
| 3 | // Export the approved Oficina artwork already held by the asset catalog. |
| 4 | // Regenerate it from oficina/estilo with brand/distribute.py calls <checkout>. |
| 5 | let script = URL(fileURLWithPath: #filePath).standardizedFileURL |
| 6 | let native = script.deletingLastPathComponent().deletingLastPathComponent() |
| 7 | let source = native.appendingPathComponent("ios/Assets.xcassets/AppIcon.appiconset/AppIcon.png") |
| 8 | let png = try Data(contentsOf: source) |
| 9 | try png.write(to: URL(fileURLWithPath: CommandLine.arguments[1])) |
| 10 | |