oficina / meet Public

Clone
git clone https://amadan.net/oficina/meet

Plain git — no account needed to clone.

Download

Download this file

1import 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>.
5let script = URL(fileURLWithPath: #filePath).standardizedFileURL
6let native = script.deletingLastPathComponent().deletingLastPathComponent()
7let source = native.appendingPathComponent("ios/Assets.xcassets/AppIcon.appiconset/AppIcon.png")
8let png = try Data(contentsOf: source)
9try png.write(to: URL(fileURLWithPath: CommandLine.arguments[1]))
10