-
-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: big refac to finally rationalize the xcode mess
XCode project/workspace/configurations/target/pods have been in a mess for a while. Some changes done to address that: * remove alt-tab-macos/ which was confusing * ci/ becomes scripts/ as these can be used locally too * added 3 xcconfig files to set aside important parameters so we stop passing flags around or modifying the huge pbxproj
- Loading branch information
Showing
68 changed files
with
419 additions
and
400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,7 @@ | |
xcuserdata/ | ||
xcshareddata/ | ||
/node_modules/ | ||
/build/ | ||
/DerivedData/ | ||
/Pods/ | ||
|
||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// docs: https://help.apple.com/xcode/#/dev745c5c974 | ||
|
||
PRODUCT_NAME = AltTab | ||
PRODUCT_BUNDLE_IDENTIFIER = com.lwouis.alt-tab-macos | ||
MACOSX_DEPLOYMENT_TARGET = 10.12 | ||
SWIFT_VERSION = 4.2 | ||
INFOPLIST_FILE = Info.plist | ||
CODE_SIGN_ENTITLEMENTS = alt_tab_macos.entitlements | ||
ENABLE_HARDENED_RUNTIME = YES // for notorization | ||
IDEDerivedDataPathOverride = DerivedData | ||
FRAMEWORK_SEARCH_PATHS = $(inherited) /System/Library/PrivateFrameworks // for SkyLight.framework | ||
LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/../Frameworks // for accessing swift dylibs at runtime | ||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG // for macros like `#if DEBUG` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// docs: https://help.apple.com/xcode/#/dev745c5c974 | ||
|
||
#include "Pods/Target Support Files/Pods-alt-tab-macos/Pods-alt-tab-macos.debug.xcconfig" | ||
#include "base.xcconfig" | ||
|
||
CODE_SIGN_IDENTITY = Local Self-Signed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// docs: https://help.apple.com/xcode/#/dev745c5c974 | ||
|
||
#include "Pods/Target Support Files/Pods-alt-tab-macos/Pods-alt-tab-macos.release.xcconfig" | ||
#include "base.xcconfig" | ||
|
||
CODE_SIGN_IDENTITY = Developer ID Application: Louis Pontoise (QXD7GW8FHY) | ||
OTHER_CODE_SIGN_FLAGS = --timestamp // for notorization | ||
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO // for notorization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exu | ||
|
||
version="$(cat $VERSION_FILE)" | ||
appFile="$APP_NAME.app" | ||
zipName="$APP_NAME-$version.zip" | ||
bundleId="$(awk -F ' = ' '/PRODUCT_BUNDLE_IDENTIFIER/ { print $2; }' < config/base.xcconfig)" | ||
|
||
cd "$XCODE_BUILD_PATH" | ||
ditto -c -k --keepParent "$appFile" "$zipName" | ||
|
||
# request notarization | ||
requestUUID=$(xcrun altool \ | ||
--notarize-app \ | ||
--verbose \ | ||
-ITunesTransport DAV \ | ||
--primary-bundle-id "$bundleId" \ | ||
--username "$APPLE_ID" \ | ||
--password "$APPLE_PASSWORD" \ | ||
--file "$zipName" 2>&1 | | ||
tee /dev/tty | | ||
awk '/RequestUUID/ { print $NF; }') | ||
if [[ $requestUUID == "" ]]; then exit 1; fi | ||
|
||
# poll notarization status until done | ||
requestStatus="in progress" | ||
while [[ "$requestStatus" == "in progress" ]]; do | ||
sleep 10 | ||
requestLogs=$(xcrun altool \ | ||
--notarization-info "$requestUUID" \ | ||
--username "$APPLE_ID" \ | ||
--password "$APPLE_PASSWORD" 2>&1) | ||
requestStatus=$(echo "$requestLogs" | awk -F ': ' '/Status:/ { print $2; }') | ||
done | ||
if [[ $requestStatus != "success" ]]; then | ||
echo "$requestLogs" | awk -F ': ' '/LogFileURL:/ { print $2; }' | xargs curl | ||
exit 1 | ||
fi | ||
|
||
# staple build | ||
xcrun stapler staple "$appFile" | ||
ditto -c -k --keepParent "$appFile" "$zipName" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.