Awesome
Conche : Version 0.1 Alpha
A primitive build system built for cocoa developers that use git, sparkle and S3.
Disclaimers
This is something I cooked up really fast to get a Slammer out the door. It does work satisfactorily for my set of requirements. However, every-time I try to think of something to add to it, I want to rewrite the core. So at this point in time its just a little more than a one trick pony. I do have big plans for it though. So stay tuned.
Features
Conche can perform the following sequence of actions after proper configuration.
- Clean source directory
- Git clone from the given repository
- Build the specified project, target and configuration
- Get the version number from info plist
- Zip the resulting app
- Sign the archive
- Verify the signature using Sparkle verifier
- Generate Appcast
- Generate Release Notes
- Tag git with the current version
- Upload to Amazon S3
Tasks are configured using YAML.
- providers.yaml - List of providers and default settings for them.
- apps.yaml - List of your applications, settings and overrides for providers.
- tasklist.yaml - Tasks and sequences
Caveats
Some things that really should've been done already:
- No declared dependencies between tasks. If you run a task that depends on something else, its behavior is unpredictable.
- There are some conventions followed, primarily because its now used by one person for one app. I'll try to list some that I know(remember):
- The $build_root specified in apps.yaml is used as $SYMROOT for xcodebuild.
- The application project file must be in $source_root
- No support for rolling back.
- No Variables.
- No Context separation for subtasks.
- No support for restarting the build at a failure point.
Install
sudo easy_install pyyaml
If you need Amazon S3 support:
sudo easy_install boto
Get the source by cloning this repository.
Configure
1. Init
cd <Conche Directory>
python conche_init.py -a <Your App> -p <Dir*>
Dir* = A build directory somewhere far far away from your working source directory
The above command copies the yaml files in the template directory to the directory you specified. Overwriting only if its new.
2. Configure
Providers
providers.yaml
Stuff to check and change:
- Name templates
- Paths for xcode, git, keys etc
Apps
apps.yaml
Stuff to check and change: Pretty much everything.
Tasks
tasklist.yaml
Define sequences of tasks here. Please do remember that there are implicit dependencies that have not been taken care of yet. For example, running get_version without running build will fail.
###. Run
cd <Conche Directory>
python conche.py -a <Your App> [-p <root>] [-t tasklist]
root = Where you did the init. Default = Current Working Directory. tasklist = Any of the task lists defined in tasklist.yaml or individual tasks defined by the providers. Can be comma separated to run more than one.
Contribution
Please do fork. Topic branches will keep me from postponing a merge, put a smile on my face and help the planet be a better place for everyone.
License
MIT License. See LICENSE
.