aboutsummaryrefslogtreecommitdiff
path: root/Carthage/Checkouts
diff options
context:
space:
mode:
Diffstat (limited to 'Carthage/Checkouts')
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/.editorconfig8
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/.gitattributes1
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/.gitignore2
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin.podspec14
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin.xcodeproj/project.pbxproj494
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin.xcodeproj/xcshareddata/xcschemes/LaunchAtLogin.xcscheme80
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin.xcodeproj/xcshareddata/xcschemes/LaunchAtLoginHelper.xcscheme91
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin/Info.plist22
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin/LaunchAtLogin.h4
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin/LaunchAtLogin.swift19
-rwxr-xr-xCarthage/Checkouts/LaunchAtLogin/LaunchAtLogin/copy-helper.sh22
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/Info.plist28
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/LaunchAtLoginHelper.entitlements8
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/main.swift25
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/before-after.md21
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/license9
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/readme.md86
17 files changed, 934 insertions, 0 deletions
diff --git a/Carthage/Checkouts/LaunchAtLogin/.editorconfig b/Carthage/Checkouts/LaunchAtLogin/.editorconfig
new file mode 100644
index 0000000..aaac325
--- /dev/null
+++ b/Carthage/Checkouts/LaunchAtLogin/.editorconfig
@@ -0,0 +1,8 @@
+root = true
+
+[*]
+indent_style = tab
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
diff --git a/Carthage/Checkouts/LaunchAtLogin/.gitattributes b/Carthage/Checkouts/LaunchAtLogin/.gitattributes
new file mode 100644
index 0000000..6313b56
--- /dev/null
+++ b/Carthage/Checkouts/LaunchAtLogin/.gitattributes
@@ -0,0 +1 @@
+* text=auto eol=lf
diff --git a/Carthage/Checkouts/LaunchAtLogin/.gitignore b/Carthage/Checkouts/LaunchAtLogin/.gitignore
new file mode 100644
index 0000000..8b53cbf
--- /dev/null
+++ b/Carthage/Checkouts/LaunchAtLogin/.gitignore
@@ -0,0 +1,2 @@
+xcuserdata
+project.xcworkspace
diff --git a/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin.podspec b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin.podspec
new file mode 100644
index 0000000..608be3a
--- /dev/null
+++ b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin.podspec
@@ -0,0 +1,14 @@
+Pod::Spec.new do |s|
+ s.name = 'LaunchAtLogin'
+ s.version = '2.5.0'
+ s.summary = 'Add "Launch at Login" functionality to your sandboxed macOS app in seconds'
+ s.license = 'MIT'
+ s.homepage = 'https://github.com/sindresorhus/LaunchAtLogin'
+ s.social_media_url = 'https://twitter.com/sindresorhus'
+ s.authors = { 'Sindre Sorhus' => 'sindresorhus@gmail.com' }
+ s.source = { :git => 'https://github.com/sindresorhus/LaunchAtLogin.git', :tag => "v#{s.version}" }
+ s.source_files = 'LaunchAtLogin', 'LaunchAtLoginHelper'
+ s.resource = 'LaunchAtLogin/copy-helper.sh'
+ s.swift_version = '4.2'
+ s.platform = :macos, '10.12'
+end
diff --git a/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin.xcodeproj/project.pbxproj b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..2a4d294
--- /dev/null
+++ b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin.xcodeproj/project.pbxproj
@@ -0,0 +1,494 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 51;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ E32E9B681EB87D7B000FEEE9 /* LaunchAtLogin.h in Headers */ = {isa = PBXBuildFile; fileRef = E32E9B661EB87D7B000FEEE9 /* LaunchAtLogin.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ E32E9B6F1EB87DC5000FEEE9 /* LaunchAtLogin.swift in Sources */ = {isa = PBXBuildFile; fileRef = E32E9B6E1EB87DC5000FEEE9 /* LaunchAtLogin.swift */; };
+ E32E9B771EB87EA3000FEEE9 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = E32E9B761EB87EA3000FEEE9 /* main.swift */; };
+ E32E9B861EB8845E000FEEE9 /* LaunchAtLoginHelper.app in Resources */ = {isa = PBXBuildFile; fileRef = E32E9B741EB87EA3000FEEE9 /* LaunchAtLoginHelper.app */; };
+ E32E9B931EB889AE000FEEE9 /* copy-helper.sh in Resources */ = {isa = PBXBuildFile; fileRef = E32E9B921EB889AE000FEEE9 /* copy-helper.sh */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ E32E9B871EB88462000FEEE9 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = E32E9B5A1EB87D7B000FEEE9 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = E32E9B731EB87EA3000FEEE9;
+ remoteInfo = LaunchAtLoginHelper;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXFileReference section */
+ E32E9B631EB87D7B000FEEE9 /* LaunchAtLogin.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = LaunchAtLogin.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ E32E9B661EB87D7B000FEEE9 /* LaunchAtLogin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = LaunchAtLogin.h; sourceTree = "<group>"; usesTabs = 1; };
+ E32E9B671EB87D7B000FEEE9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+ E32E9B6E1EB87DC5000FEEE9 /* LaunchAtLogin.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = LaunchAtLogin.swift; sourceTree = "<group>"; usesTabs = 1; };
+ E32E9B741EB87EA3000FEEE9 /* LaunchAtLoginHelper.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LaunchAtLoginHelper.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ E32E9B761EB87EA3000FEEE9 /* main.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = main.swift; sourceTree = "<group>"; usesTabs = 1; };
+ E32E9B7F1EB87EA3000FEEE9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+ E32E9B921EB889AE000FEEE9 /* copy-helper.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; lineEnding = 0; path = "copy-helper.sh"; sourceTree = "<group>"; usesTabs = 1; };
+ E3B8C38A20C0003300272EC0 /* LaunchAtLoginHelper.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = LaunchAtLoginHelper.entitlements; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ E32E9B5F1EB87D7B000FEEE9 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ E32E9B711EB87EA3000FEEE9 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ E32E9B591EB87D7B000FEEE9 = {
+ isa = PBXGroup;
+ children = (
+ E32E9B651EB87D7B000FEEE9 /* LaunchAtLogin */,
+ E32E9B751EB87EA3000FEEE9 /* LaunchAtLoginHelper */,
+ E32E9B641EB87D7B000FEEE9 /* Products */,
+ );
+ sourceTree = "<group>";
+ usesTabs = 1;
+ };
+ E32E9B641EB87D7B000FEEE9 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ E32E9B631EB87D7B000FEEE9 /* LaunchAtLogin.framework */,
+ E32E9B741EB87EA3000FEEE9 /* LaunchAtLoginHelper.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ E32E9B651EB87D7B000FEEE9 /* LaunchAtLogin */ = {
+ isa = PBXGroup;
+ children = (
+ E32E9B6E1EB87DC5000FEEE9 /* LaunchAtLogin.swift */,
+ E32E9B661EB87D7B000FEEE9 /* LaunchAtLogin.h */,
+ E32E9B921EB889AE000FEEE9 /* copy-helper.sh */,
+ E32E9B671EB87D7B000FEEE9 /* Info.plist */,
+ );
+ path = LaunchAtLogin;
+ sourceTree = "<group>";
+ };
+ E32E9B751EB87EA3000FEEE9 /* LaunchAtLoginHelper */ = {
+ isa = PBXGroup;
+ children = (
+ E32E9B761EB87EA3000FEEE9 /* main.swift */,
+ E32E9B7F1EB87EA3000FEEE9 /* Info.plist */,
+ E3B8C38A20C0003300272EC0 /* LaunchAtLoginHelper.entitlements */,
+ );
+ path = LaunchAtLoginHelper;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXHeadersBuildPhase section */
+ E32E9B601EB87D7B000FEEE9 /* Headers */ = {
+ isa = PBXHeadersBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ E32E9B681EB87D7B000FEEE9 /* LaunchAtLogin.h in Headers */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXHeadersBuildPhase section */
+
+/* Begin PBXNativeTarget section */
+ E32E9B621EB87D7B000FEEE9 /* LaunchAtLogin */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = E32E9B6B1EB87D7B000FEEE9 /* Build configuration list for PBXNativeTarget "LaunchAtLogin" */;
+ buildPhases = (
+ E32E9B5E1EB87D7B000FEEE9 /* Sources */,
+ E32E9B5F1EB87D7B000FEEE9 /* Frameworks */,
+ E32E9B601EB87D7B000FEEE9 /* Headers */,
+ E32E9B611EB87D7B000FEEE9 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ E32E9B881EB88462000FEEE9 /* PBXTargetDependency */,
+ );
+ name = LaunchAtLogin;
+ productName = LaunchAtLogin;
+ productReference = E32E9B631EB87D7B000FEEE9 /* LaunchAtLogin.framework */;
+ productType = "com.apple.product-type.framework";
+ };
+ E32E9B731EB87EA3000FEEE9 /* LaunchAtLoginHelper */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = E32E9B801EB87EA3000FEEE9 /* Build configuration list for PBXNativeTarget "LaunchAtLoginHelper" */;
+ buildPhases = (
+ E32E9B701EB87EA3000FEEE9 /* Sources */,
+ E32E9B711EB87EA3000FEEE9 /* Frameworks */,
+ E32E9B721EB87EA3000FEEE9 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = LaunchAtLoginHelper;
+ productName = LaunchAtLoginHelper;
+ productReference = E32E9B741EB87EA3000FEEE9 /* LaunchAtLoginHelper.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ E32E9B5A1EB87D7B000FEEE9 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastSwiftUpdateCheck = 0830;
+ LastUpgradeCheck = 0940;
+ ORGANIZATIONNAME = "Sindre Sorhus";
+ TargetAttributes = {
+ E32E9B621EB87D7B000FEEE9 = {
+ CreatedOnToolsVersion = 8.3.2;
+ LastSwiftMigration = "";
+ };
+ E32E9B731EB87EA3000FEEE9 = {
+ CreatedOnToolsVersion = 8.3.2;
+ LastSwiftMigration = "";
+ SystemCapabilities = {
+ com.apple.HardenedRuntime = {
+ enabled = 1;
+ };
+ com.apple.Sandbox = {
+ enabled = 1;
+ };
+ };
+ };
+ };
+ };
+ buildConfigurationList = E32E9B5D1EB87D7B000FEEE9 /* Build configuration list for PBXProject "LaunchAtLogin" */;
+ compatibilityVersion = "Xcode 10.0";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = E32E9B591EB87D7B000FEEE9;
+ productRefGroup = E32E9B641EB87D7B000FEEE9 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ E32E9B621EB87D7B000FEEE9 /* LaunchAtLogin */,
+ E32E9B731EB87EA3000FEEE9 /* LaunchAtLoginHelper */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ E32E9B611EB87D7B000FEEE9 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ E32E9B861EB8845E000FEEE9 /* LaunchAtLoginHelper.app in Resources */,
+ E32E9B931EB889AE000FEEE9 /* copy-helper.sh in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ E32E9B721EB87EA3000FEEE9 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ E32E9B5E1EB87D7B000FEEE9 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ E32E9B6F1EB87DC5000FEEE9 /* LaunchAtLogin.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ E32E9B701EB87EA3000FEEE9 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ E32E9B771EB87EA3000FEEE9 /* main.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ E32E9B881EB88462000FEEE9 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = E32E9B731EB87EA3000FEEE9 /* LaunchAtLoginHelper */;
+ targetProxy = E32E9B871EB88462000FEEE9 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin XCBuildConfiguration section */
+ E32E9B691EB87D7B000FEEE9 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ CODE_SIGN_IDENTITY = "";
+ COPY_PHASE_STRIP = NO;
+ CURRENT_PROJECT_VERSION = 1;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.12;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = macosx;
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_COMPILATION_MODE = singlefile;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ VALID_ARCHS = x86_64;
+ VERSIONING_SYSTEM = "apple-generic";
+ VERSION_INFO_PREFIX = "";
+ };
+ name = Debug;
+ };
+ E32E9B6A1EB87D7B000FEEE9 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ CODE_SIGN_IDENTITY = "";
+ COPY_PHASE_STRIP = NO;
+ CURRENT_PROJECT_VERSION = 1;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.12;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = macosx;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ VALID_ARCHS = x86_64;
+ VERSIONING_SYSTEM = "apple-generic";
+ VERSION_INFO_PREFIX = "";
+ };
+ name = Release;
+ };
+ E32E9B6C1EB87D7B000FEEE9 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_IDENTITY = "";
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ DEFINES_MODULE = YES;
+ DEVELOPMENT_TEAM = YG56YK5RN5;
+ DYLIB_COMPATIBILITY_VERSION = 1;
+ DYLIB_CURRENT_VERSION = 1;
+ DYLIB_INSTALL_NAME_BASE = "@rpath";
+ FRAMEWORK_VERSION = A;
+ INFOPLIST_FILE = LaunchAtLogin/Info.plist;
+ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ "@loader_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.sindresorhus.LaunchAtLogin;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SKIP_INSTALL = YES;
+ SWIFT_COMPILATION_MODE = singlefile;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 4.2;
+ };
+ name = Debug;
+ };
+ E32E9B6D1EB87D7B000FEEE9 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_IDENTITY = "";
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ DEFINES_MODULE = YES;
+ DEVELOPMENT_TEAM = YG56YK5RN5;
+ DYLIB_COMPATIBILITY_VERSION = 1;
+ DYLIB_CURRENT_VERSION = 1;
+ DYLIB_INSTALL_NAME_BASE = "@rpath";
+ FRAMEWORK_VERSION = A;
+ INFOPLIST_FILE = LaunchAtLogin/Info.plist;
+ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ "@loader_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.sindresorhus.LaunchAtLogin;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SKIP_INSTALL = YES;
+ SWIFT_VERSION = 4.2;
+ };
+ name = Release;
+ };
+ E32E9B811EB87EA3000FEEE9 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_ENTITLEMENTS = LaunchAtLoginHelper/LaunchAtLoginHelper.entitlements;
+ CODE_SIGN_IDENTITY = "Mac Developer";
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ DEVELOPMENT_TEAM = YG56YK5RN5;
+ ENABLE_HARDENED_RUNTIME = YES;
+ INFOPLIST_FILE = LaunchAtLoginHelper/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.sindresorhus.LaunchAtLoginHelper;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SKIP_INSTALL = YES;
+ SWIFT_VERSION = 4.2;
+ };
+ name = Debug;
+ };
+ E32E9B821EB87EA3000FEEE9 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_ENTITLEMENTS = LaunchAtLoginHelper/LaunchAtLoginHelper.entitlements;
+ CODE_SIGN_IDENTITY = "Mac Developer";
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ DEVELOPMENT_TEAM = YG56YK5RN5;
+ ENABLE_HARDENED_RUNTIME = YES;
+ INFOPLIST_FILE = LaunchAtLoginHelper/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.sindresorhus.LaunchAtLoginHelper;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SKIP_INSTALL = YES;
+ SWIFT_VERSION = 4.2;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ E32E9B5D1EB87D7B000FEEE9 /* Build configuration list for PBXProject "LaunchAtLogin" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ E32E9B691EB87D7B000FEEE9 /* Debug */,
+ E32E9B6A1EB87D7B000FEEE9 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ E32E9B6B1EB87D7B000FEEE9 /* Build configuration list for PBXNativeTarget "LaunchAtLogin" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ E32E9B6C1EB87D7B000FEEE9 /* Debug */,
+ E32E9B6D1EB87D7B000FEEE9 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ E32E9B801EB87EA3000FEEE9 /* Build configuration list for PBXNativeTarget "LaunchAtLoginHelper" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ E32E9B811EB87EA3000FEEE9 /* Debug */,
+ E32E9B821EB87EA3000FEEE9 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = E32E9B5A1EB87D7B000FEEE9 /* Project object */;
+}
diff --git a/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin.xcodeproj/xcshareddata/xcschemes/LaunchAtLogin.xcscheme b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin.xcodeproj/xcshareddata/xcschemes/LaunchAtLogin.xcscheme
new file mode 100644
index 0000000..81af23c
--- /dev/null
+++ b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin.xcodeproj/xcshareddata/xcschemes/LaunchAtLogin.xcscheme
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ LastUpgradeVersion = "0940"
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "E32E9B621EB87D7B000FEEE9"
+ BuildableName = "LaunchAtLogin.framework"
+ BlueprintName = "LaunchAtLogin"
+ ReferencedContainer = "container:LaunchAtLogin.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ buildConfiguration = "Debug"
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ shouldUseLaunchSchemeArgsEnv = "YES">
+ <Testables>
+ </Testables>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </TestAction>
+ <LaunchAction
+ buildConfiguration = "Debug"
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ ignoresPersistentStateOnLaunch = "NO"
+ debugDocumentVersioning = "YES"
+ debugServiceExtension = "internal"
+ allowLocationSimulation = "YES">
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "E32E9B621EB87D7B000FEEE9"
+ BuildableName = "LaunchAtLogin.framework"
+ BlueprintName = "LaunchAtLogin"
+ ReferencedContainer = "container:LaunchAtLogin.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ buildConfiguration = "Release"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ debugDocumentVersioning = "YES">
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "E32E9B621EB87D7B000FEEE9"
+ BuildableName = "LaunchAtLogin.framework"
+ BlueprintName = "LaunchAtLogin"
+ ReferencedContainer = "container:LaunchAtLogin.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
diff --git a/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin.xcodeproj/xcshareddata/xcschemes/LaunchAtLoginHelper.xcscheme b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin.xcodeproj/xcshareddata/xcschemes/LaunchAtLoginHelper.xcscheme
new file mode 100644
index 0000000..a3a3172
--- /dev/null
+++ b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin.xcodeproj/xcshareddata/xcschemes/LaunchAtLoginHelper.xcscheme
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ LastUpgradeVersion = "0940"
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "E32E9B731EB87EA3000FEEE9"
+ BuildableName = "LaunchAtLoginHelper.app"
+ BlueprintName = "LaunchAtLoginHelper"
+ ReferencedContainer = "container:LaunchAtLogin.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ buildConfiguration = "Debug"
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ shouldUseLaunchSchemeArgsEnv = "YES">
+ <Testables>
+ </Testables>
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "E32E9B731EB87EA3000FEEE9"
+ BuildableName = "LaunchAtLoginHelper.app"
+ BlueprintName = "LaunchAtLoginHelper"
+ ReferencedContainer = "container:LaunchAtLogin.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </TestAction>
+ <LaunchAction
+ buildConfiguration = "Debug"
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ ignoresPersistentStateOnLaunch = "NO"
+ debugDocumentVersioning = "YES"
+ debugServiceExtension = "internal"
+ allowLocationSimulation = "YES">
+ <BuildableProductRunnable
+ runnableDebuggingMode = "0">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "E32E9B731EB87EA3000FEEE9"
+ BuildableName = "LaunchAtLoginHelper.app"
+ BlueprintName = "LaunchAtLoginHelper"
+ ReferencedContainer = "container:LaunchAtLogin.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ buildConfiguration = "Release"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ debugDocumentVersioning = "YES">
+ <BuildableProductRunnable
+ runnableDebuggingMode = "0">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "E32E9B731EB87EA3000FEEE9"
+ BuildableName = "LaunchAtLoginHelper.app"
+ BlueprintName = "LaunchAtLoginHelper"
+ ReferencedContainer = "container:LaunchAtLogin.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
diff --git a/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin/Info.plist b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin/Info.plist
new file mode 100644
index 0000000..ceae955
--- /dev/null
+++ b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin/Info.plist
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleExecutable</key>
+ <string>$(EXECUTABLE_NAME)</string>
+ <key>CFBundleIdentifier</key>
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>$(PRODUCT_NAME)</string>
+ <key>CFBundlePackageType</key>
+ <string>FMWK</string>
+ <key>CFBundleShortVersionString</key>
+ <string>2.5.0</string>
+ <key>CFBundleVersion</key>
+ <string>$(CURRENT_PROJECT_VERSION)</string>
+ <key>NSHumanReadableCopyright</key>
+ <string>MIT © Sindre Sorhus</string>
+</dict>
+</plist>
diff --git a/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin/LaunchAtLogin.h b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin/LaunchAtLogin.h
new file mode 100644
index 0000000..f801178
--- /dev/null
+++ b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin/LaunchAtLogin.h
@@ -0,0 +1,4 @@
+#import <Cocoa/Cocoa.h>
+
+FOUNDATION_EXPORT double LaunchAtLoginVersionNumber;
+FOUNDATION_EXPORT const unsigned char LaunchAtLoginVersionString[];
diff --git a/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin/LaunchAtLogin.swift b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin/LaunchAtLogin.swift
new file mode 100644
index 0000000..c0050c9
--- /dev/null
+++ b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin/LaunchAtLogin.swift
@@ -0,0 +1,19 @@
+import Foundation
+import ServiceManagement
+
+public struct LaunchAtLogin {
+ private static let id = "\(Bundle.main.bundleIdentifier!)-LaunchAtLoginHelper"
+
+ public static var isEnabled: Bool {
+ get {
+ guard let jobs = (SMCopyAllJobDictionaries(kSMDomainUserLaunchd).takeRetainedValue() as? [[String: AnyObject]]) else {
+ return false
+ }
+ let job = jobs.first { $0["Label"] as! String == id }
+ return job?["OnDemand"] as? Bool ?? false
+ }
+ set {
+ SMLoginItemSetEnabled(id as CFString, newValue)
+ }
+ }
+}
diff --git a/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin/copy-helper.sh b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin/copy-helper.sh
new file mode 100755
index 0000000..52af101
--- /dev/null
+++ b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLogin/copy-helper.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+origin_helper_path="$BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH/LaunchAtLogin.framework/Resources/LaunchAtLoginHelper.app"
+helper_dir="$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/LoginItems"
+helper_path="$helper_dir/LaunchAtLoginHelper.app"
+
+rm -rf "$helper_path"
+mkdir -p "$helper_dir"
+cp -rf "$origin_helper_path" "$helper_dir/"
+
+defaults write "$helper_path/Contents/Info" CFBundleIdentifier -string "$PRODUCT_BUNDLE_IDENTIFIER-LaunchAtLoginHelper"
+
+if [[ -n $CODE_SIGN_ENTITLEMENTS ]]; then
+ codesign --force --entitlements="$CODE_SIGN_ENTITLEMENTS" --options=runtime --sign="$EXPANDED_CODE_SIGN_IDENTITY_NAME" "$helper_path"
+else
+ codesign --force --options=runtime --sign="$EXPANDED_CODE_SIGN_IDENTITY_NAME" "$helper_path"
+fi
+
+if [[ $CONFIGURATION == "Release" ]]; then
+ rm -rf "$origin_helper_path"
+ rm "$(dirname "$origin_helper_path")/copy-helper.sh"
+fi
diff --git a/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/Info.plist b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/Info.plist
new file mode 100644
index 0000000..a075677
--- /dev/null
+++ b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/Info.plist
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleExecutable</key>
+ <string>$(EXECUTABLE_NAME)</string>
+ <key>CFBundleIdentifier</key>
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>$(PRODUCT_NAME)</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0.0</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+ <key>LSMinimumSystemVersion</key>
+ <string>$(MACOSX_DEPLOYMENT_TARGET)</string>
+ <key>NSHumanReadableCopyright</key>
+ <string>MIT © Sindre Sorhus</string>
+ <key>LSBackgroundOnly</key>
+ <true/>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+</dict>
+</plist>
diff --git a/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/LaunchAtLoginHelper.entitlements b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/LaunchAtLoginHelper.entitlements
new file mode 100644
index 0000000..852fa1a
--- /dev/null
+++ b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/LaunchAtLoginHelper.entitlements
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>com.apple.security.app-sandbox</key>
+ <true/>
+</dict>
+</plist>
diff --git a/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/main.swift b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/main.swift
new file mode 100644
index 0000000..ad7fd4f
--- /dev/null
+++ b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/main.swift
@@ -0,0 +1,25 @@
+import Cocoa
+
+final class AppDelegate: NSObject, NSApplicationDelegate {
+ func applicationDidFinishLaunching(_ notification: Notification) {
+ let bundleId = Bundle.main.bundleIdentifier!
+ // TODO: Make this more strict by only replacing at the end
+ let mainBundleId = bundleId.replacingOccurrences(of: "-LaunchAtLoginHelper", with: "")
+
+ // Ensure the app is not already running
+ guard NSRunningApplication.runningApplications(withBundleIdentifier: mainBundleId).isEmpty else {
+ NSApp.terminate(nil)
+ return
+ }
+
+ let pathComponents = (Bundle.main.bundlePath as NSString).pathComponents
+ let mainPath = NSString.path(withComponents: Array(pathComponents[0...(pathComponents.count - 5)]))
+ NSWorkspace.shared.launchApplication(mainPath)
+ NSApp.terminate(nil)
+ }
+}
+
+private let app = NSApplication.shared
+private let delegate = AppDelegate()
+app.delegate = delegate
+app.run()
diff --git a/Carthage/Checkouts/LaunchAtLogin/before-after.md b/Carthage/Checkouts/LaunchAtLogin/before-after.md
new file mode 100644
index 0000000..91cbe70
--- /dev/null
+++ b/Carthage/Checkouts/LaunchAtLogin/before-after.md
@@ -0,0 +1,21 @@
+# Before and after
+
+With `LaunchAtLogin`, you only have to do 2 steps instead of 13!
+
+```diff
+- 1. Create a new target that will be the helper app that launches your app
+- 2. Set `LSBackgroundOnly` to true in the `Info.plist` file
+- 3. Set `Skip Install` to `YES` in the build settings for the helper app
+- 4. Enable sandboxing for the helper app
+- 5. Add a new `Copy Files` build phase to the main app
+- 6. Select `Wrapper` as destination
+- 7. Enter `Contents/Library/LoginItems` as subpath
+- 8. Add the helper build product to the build phase
+- 9. Copy-paste some boilerplate code into the helper app
+- 10. Remember to replace `bundleid.of.main.app` and `MainExectuableName` with your own values
+- 11. Copy-paste some code to register the helper app into your main app
+- 12. Make sure the main app and helper app use the same code signing certificate
+- 13. Manually verify that you did everything correctly
++ 1. Install this package
++ 2. Add a new "Run Script Phase"
+```
diff --git a/Carthage/Checkouts/LaunchAtLogin/license b/Carthage/Checkouts/LaunchAtLogin/license
new file mode 100644
index 0000000..e7af2f7
--- /dev/null
+++ b/Carthage/Checkouts/LaunchAtLogin/license
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/Carthage/Checkouts/LaunchAtLogin/readme.md b/Carthage/Checkouts/LaunchAtLogin/readme.md
new file mode 100644
index 0000000..5cc5a31
--- /dev/null
+++ b/Carthage/Checkouts/LaunchAtLogin/readme.md
@@ -0,0 +1,86 @@
+# LaunchAtLogin
+
+> Add "Launch at Login" functionality to your macOS app in seconds
+
+It's usually quite a [convoluted and error-prone process](before-after.md) to add this. **No more!**
+
+This package works with both sandboxed and non-sandboxed apps and it's App Store compatible and used in my [Lungo](https://blog.sindresorhus.com/lungo-b364a6c2745f) and [Battery Indicator](https://sindresorhus.com/battery-indicator) apps.
+
+*You might also find my [`create-dmg`](https://github.com/sindresorhus/create-dmg) project useful if you're publishing your app outside the App Store.*
+
+
+## Requirements
+
+- macOS 10.12+
+- Xcode 10+
+- Swift 4.2+
+
+
+## Install
+
+#### Carthage
+
+```
+github "sindresorhus/LaunchAtLogin"
+```
+
+#### CocoaPods
+
+```ruby
+pod 'LaunchAtLogin'
+```
+
+<a href="https://www.patreon.com/sindresorhus">
+ <img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" width="160">
+</a>
+
+
+## Usage
+
+Add a new ["Run Script Phase"](http://stackoverflow.com/a/39633955/64949) below "Embed Frameworks" in "Build Phases" with the following:
+
+Carthage:
+
+```sh
+"${PROJECT_DIR}/Carthage/Build/Mac/LaunchAtLogin.framework/Resources/copy-helper.sh"
+```
+
+CocoaPods:
+
+```sh
+"${PROJECT_DIR}/Pods/LaunchAtLogin/LaunchAtLogin/copy-helper.sh"
+```
+
+Use it in your app:
+
+```swift
+import LaunchAtLogin
+
+print(LaunchAtLogin.isEnabled)
+//=> false
+
+LaunchAtLogin.isEnabled = true
+
+print(LaunchAtLogin.isEnabled)
+//=> true
+```
+
+*Note that the [Mac App Store guidelines](https://developer.apple.com/app-store/review/guidelines/) requires "launch at login" functionality to be enabled in response to a user action. This is usually solved by making it a preference that is disabled by default.*
+
+
+## How does it work?
+
+The framework bundles the helper app needed to launch your app and copies it into your app at build time.
+
+
+## Related
+
+- [Defaults](https://github.com/sindresorhus/Defaults) - Swifty and modern UserDefaults
+- [Preferences](https://github.com/sindresorhus/Preferences) - Add a preferences window to your macOS app in minutes
+- [DockProgress](https://github.com/sindresorhus/DockProgress) - Show progress in your app's Dock icon
+- [More…](https://github.com/search?q=user%3Asindresorhus+language%3Aswift)
+
+
+## License
+
+MIT © [Sindre Sorhus](https://sindresorhus.com)