Merge pull request #2980 from stuartbreckenridge/contributions

Contributions
This commit is contained in:
Maurice Parker 2021-04-11 09:10:05 -05:00 committed by GitHub
commit ccaf47aa83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions

View File

@ -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: `chmod +x 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:

40
setup.sh Executable file
View File

@ -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 <<file >> ../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!