diff --git a/README.md b/README.md index e60220cbb..e2a195691 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,16 @@ This allows for a pristine project with code signing set up with the appropriate developer ID and certificates, and for dev to be able to have local settings without needing to check in anything into source control. +You can do this in one of two ways: using the included `setup.sh` script or by creating the folder structure and file manually. + +##### Using `setup.sh` + +- Open Terminal and `cd` into the NetNewsWire directory. +- Run this command to ensure you have execution rights for the script: `sudo chmod 755 setup.sh` +- Execute the script with the following command: `./setup.sh` and complete the answers. + +##### Manually + Make a directory SharedXcodeSettings next to where you have this repository. The directory structure is: diff --git a/setup.sh b/setup.sh new file mode 100755 index 000000000..025c8943b --- /dev/null +++ b/setup.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +cat << "EOF" + __ _ ____ ____ __ _ ____ _ _ ____ _ _ __ ____ ____ + ( ( \( __)(_ _)( ( \( __)/ )( \/ ___)/ )( \( )( _ \( __) + / / ) _) )( / / ) _) \ /\ /\___ \\ /\ / )( ) / ) _) + \_)__)(____) (__) \_)__)(____)(_/\_)(____/(_/\_)(__)(__\_)(____) + +EOF + +echo This script will create a SharedXcodeSettings folder and a DeveloperSettings.xcconfig file. +echo +echo We need to ask a few questions first. +echo +read -p "Press enter to get started." + + +# Get the user's Developer Team ID +echo 1. What is your Developer Team ID? You can get this from developer.apple.com. +read devTeamID + +# Get the user's Org Identifier +echo 2. What is your organisation identifier? e.g. com.developername +read devOrgName + +echo Creating SharedXcodeSettings Folder +mkdir -p ../SharedXcodeSettings + +echo Creating DeveloperSettings.xcconfig + +cat <> ../SharedXcodeSettings/DeveloperSettings.xcconfig +CODE_SIGN_IDENTITY = Mac Developer +DEVELOPMENT_TEAM = $devTeamID +CODE_SIGN_STYLE = Automatic +ORGANIZATION_IDENTIFIER = $devOrgName +DEVELOPER_ENTITLEMENTS = -dev +PROVISIONING_PROFILE_SPECIFIER = +file + +echo Done! \ No newline at end of file