tofu.gmi (1659B)
1 # Tofu 2 3 Tofu is an easy-to-use, open-source, two-factor authentication app designed specifically for iOS, made by Calle Luks. I adopted it after migrating from Authy, and ended up overhauling its icon system. It's a really well designed app: 4 5 When I migrated to Tofu, it had a limited number of hand-designed icons in one big Sketch file. 6 7 => https://github.com/calleluks/Tofu/blob/d6b4544f7a996fd2c7a4feaa77cdee7735240749/IssuerIcons.sketch Ye olde Sketch file 8 9 Each icon was created and exported manually: I set out to simplify the process. 10 11 => https://github.com/calleluks/Tofu/issues/52 "Hello, good sir, may I simplify some processes?" 12 13 Calle proposed we create a shell script to generate icons on-demand from a folder of pngs. I got my shell hat on and a week later, my pull request was commited to upstream with a brand new bash script. The script iterates over a given directory using `sed` and regex to grab the names of each png inside and add them to Xcode's assets folder. It uses a heredoc as a template for the new imageset's JSON, and the `sips` cli to generate properly sized icons for use in the app. 14 15 => https://github.com/calleluks/Tofu/pull/60 My pull request 16 17 Contributing to open source projects is incredibly fun. If you've got a free weekend, take some time to hack on your favorite codebase. Big thanks to Calle for creating such an awesome app – I look forward to collaborating more in the future. 18 19 => https://apps.apple.com/app/tofu-authenticator/id1082229305 Download Tofu on the App Store 20 => https://github.com/calleluks/Tofu Explore the source on GitHub 21 => https://www.calleluks.com Check out Calle Luks 22