mirror of
https://github.com/ApfelTeeSaft/MacFNLauncher.git
synced 2026-08-26 19:23:40 +00:00
stuff
This commit is contained in:
@@ -0,0 +1,546 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 77;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
CFEF3B3E2D81C25B0081D63A /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = CFEF3B242D81C2580081D63A /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = CFEF3B2B2D81C2580081D63A;
|
||||
remoteInfo = MacFNLauncher;
|
||||
};
|
||||
CFEF3B482D81C25B0081D63A /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = CFEF3B242D81C2580081D63A /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = CFEF3B2B2D81C2580081D63A;
|
||||
remoteInfo = MacFNLauncher;
|
||||
};
|
||||
/* End PBXContainerItemProxy section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
CFEF3B2C2D81C2580081D63A /* MacFNLauncher.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MacFNLauncher.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
CFEF3B3D2D81C25B0081D63A /* MacFNLauncherTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MacFNLauncherTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
CFEF3B472D81C25B0081D63A /* MacFNLauncherUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MacFNLauncherUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFileSystemSynchronizedRootGroup section */
|
||||
CFEF3B2E2D81C2580081D63A /* MacFNLauncher */ = {
|
||||
isa = PBXFileSystemSynchronizedRootGroup;
|
||||
path = MacFNLauncher;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CFEF3B402D81C25B0081D63A /* MacFNLauncherTests */ = {
|
||||
isa = PBXFileSystemSynchronizedRootGroup;
|
||||
path = MacFNLauncherTests;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CFEF3B4A2D81C25B0081D63A /* MacFNLauncherUITests */ = {
|
||||
isa = PBXFileSystemSynchronizedRootGroup;
|
||||
path = MacFNLauncherUITests;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXFileSystemSynchronizedRootGroup section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
CFEF3B292D81C2580081D63A /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
CFEF3B3A2D81C25B0081D63A /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
CFEF3B442D81C25B0081D63A /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
CFEF3B232D81C2580081D63A = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CFEF3B2E2D81C2580081D63A /* MacFNLauncher */,
|
||||
CFEF3B402D81C25B0081D63A /* MacFNLauncherTests */,
|
||||
CFEF3B4A2D81C25B0081D63A /* MacFNLauncherUITests */,
|
||||
CFEF3B2D2D81C2580081D63A /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CFEF3B2D2D81C2580081D63A /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CFEF3B2C2D81C2580081D63A /* MacFNLauncher.app */,
|
||||
CFEF3B3D2D81C25B0081D63A /* MacFNLauncherTests.xctest */,
|
||||
CFEF3B472D81C25B0081D63A /* MacFNLauncherUITests.xctest */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
CFEF3B2B2D81C2580081D63A /* MacFNLauncher */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = CFEF3B512D81C25B0081D63A /* Build configuration list for PBXNativeTarget "MacFNLauncher" */;
|
||||
buildPhases = (
|
||||
CFEF3B282D81C2580081D63A /* Sources */,
|
||||
CFEF3B292D81C2580081D63A /* Frameworks */,
|
||||
CFEF3B2A2D81C2580081D63A /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
fileSystemSynchronizedGroups = (
|
||||
CFEF3B2E2D81C2580081D63A /* MacFNLauncher */,
|
||||
);
|
||||
name = MacFNLauncher;
|
||||
packageProductDependencies = (
|
||||
);
|
||||
productName = MacFNLauncher;
|
||||
productReference = CFEF3B2C2D81C2580081D63A /* MacFNLauncher.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
CFEF3B3C2D81C25B0081D63A /* MacFNLauncherTests */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = CFEF3B542D81C25B0081D63A /* Build configuration list for PBXNativeTarget "MacFNLauncherTests" */;
|
||||
buildPhases = (
|
||||
CFEF3B392D81C25B0081D63A /* Sources */,
|
||||
CFEF3B3A2D81C25B0081D63A /* Frameworks */,
|
||||
CFEF3B3B2D81C25B0081D63A /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
CFEF3B3F2D81C25B0081D63A /* PBXTargetDependency */,
|
||||
);
|
||||
fileSystemSynchronizedGroups = (
|
||||
CFEF3B402D81C25B0081D63A /* MacFNLauncherTests */,
|
||||
);
|
||||
name = MacFNLauncherTests;
|
||||
packageProductDependencies = (
|
||||
);
|
||||
productName = MacFNLauncherTests;
|
||||
productReference = CFEF3B3D2D81C25B0081D63A /* MacFNLauncherTests.xctest */;
|
||||
productType = "com.apple.product-type.bundle.unit-test";
|
||||
};
|
||||
CFEF3B462D81C25B0081D63A /* MacFNLauncherUITests */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = CFEF3B572D81C25B0081D63A /* Build configuration list for PBXNativeTarget "MacFNLauncherUITests" */;
|
||||
buildPhases = (
|
||||
CFEF3B432D81C25B0081D63A /* Sources */,
|
||||
CFEF3B442D81C25B0081D63A /* Frameworks */,
|
||||
CFEF3B452D81C25B0081D63A /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
CFEF3B492D81C25B0081D63A /* PBXTargetDependency */,
|
||||
);
|
||||
fileSystemSynchronizedGroups = (
|
||||
CFEF3B4A2D81C25B0081D63A /* MacFNLauncherUITests */,
|
||||
);
|
||||
name = MacFNLauncherUITests;
|
||||
packageProductDependencies = (
|
||||
);
|
||||
productName = MacFNLauncherUITests;
|
||||
productReference = CFEF3B472D81C25B0081D63A /* MacFNLauncherUITests.xctest */;
|
||||
productType = "com.apple.product-type.bundle.ui-testing";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
CFEF3B242D81C2580081D63A /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
BuildIndependentTargetsInParallel = 1;
|
||||
LastSwiftUpdateCheck = 1620;
|
||||
LastUpgradeCheck = 1620;
|
||||
TargetAttributes = {
|
||||
CFEF3B2B2D81C2580081D63A = {
|
||||
CreatedOnToolsVersion = 16.2;
|
||||
};
|
||||
CFEF3B3C2D81C25B0081D63A = {
|
||||
CreatedOnToolsVersion = 16.2;
|
||||
TestTargetID = CFEF3B2B2D81C2580081D63A;
|
||||
};
|
||||
CFEF3B462D81C25B0081D63A = {
|
||||
CreatedOnToolsVersion = 16.2;
|
||||
TestTargetID = CFEF3B2B2D81C2580081D63A;
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = CFEF3B272D81C2580081D63A /* Build configuration list for PBXProject "MacFNLauncher" */;
|
||||
developmentRegion = en;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
Base,
|
||||
);
|
||||
mainGroup = CFEF3B232D81C2580081D63A;
|
||||
minimizedProjectReferenceProxies = 1;
|
||||
preferredProjectObjectVersion = 77;
|
||||
productRefGroup = CFEF3B2D2D81C2580081D63A /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
CFEF3B2B2D81C2580081D63A /* MacFNLauncher */,
|
||||
CFEF3B3C2D81C25B0081D63A /* MacFNLauncherTests */,
|
||||
CFEF3B462D81C25B0081D63A /* MacFNLauncherUITests */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
CFEF3B2A2D81C2580081D63A /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
CFEF3B3B2D81C25B0081D63A /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
CFEF3B452D81C25B0081D63A /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
CFEF3B282D81C2580081D63A /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
CFEF3B392D81C25B0081D63A /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
CFEF3B432D81C25B0081D63A /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXTargetDependency section */
|
||||
CFEF3B3F2D81C25B0081D63A /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = CFEF3B2B2D81C2580081D63A /* MacFNLauncher */;
|
||||
targetProxy = CFEF3B3E2D81C25B0081D63A /* PBXContainerItemProxy */;
|
||||
};
|
||||
CFEF3B492D81C25B0081D63A /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = CFEF3B2B2D81C2580081D63A /* MacFNLauncher */;
|
||||
targetProxy = CFEF3B482D81C25B0081D63A /* PBXContainerItemProxy */;
|
||||
};
|
||||
/* End PBXTargetDependency section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
CFEF3B4F2D81C25B0081D63A /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_ENABLE_OBJC_WEAK = 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu17;
|
||||
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;
|
||||
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
||||
MACOSX_DEPLOYMENT_TARGET = 15.2;
|
||||
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
||||
MTL_FAST_MATH = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = macosx;
|
||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
CFEF3B502D81C25B0081D63A /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_ENABLE_OBJC_WEAK = 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu17;
|
||||
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;
|
||||
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
||||
MACOSX_DEPLOYMENT_TARGET = 15.2;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
MTL_FAST_MATH = YES;
|
||||
SDKROOT = macosx;
|
||||
SWIFT_COMPILATION_MODE = wholemodule;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
CFEF3B522D81C25B0081D63A /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||
CODE_SIGN_ENTITLEMENTS = MacFNLauncher/MacFNLauncher.entitlements;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEVELOPMENT_ASSET_PATHS = "\"MacFNLauncher/Preview Content\"";
|
||||
ENABLE_PREVIEWS = YES;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/../Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.apfelteesaft.MacFNLauncher;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||
SWIFT_VERSION = 5.0;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
CFEF3B532D81C25B0081D63A /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||
CODE_SIGN_ENTITLEMENTS = MacFNLauncher/MacFNLauncher.entitlements;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEVELOPMENT_ASSET_PATHS = "\"MacFNLauncher/Preview Content\"";
|
||||
ENABLE_PREVIEWS = YES;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/../Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.apfelteesaft.MacFNLauncher;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||
SWIFT_VERSION = 5.0;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
CFEF3B552D81C25B0081D63A /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
MACOSX_DEPLOYMENT_TARGET = 15.2;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.apfelteesaft.MacFNLauncherTests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_EMIT_LOC_STRINGS = NO;
|
||||
SWIFT_VERSION = 5.0;
|
||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MacFNLauncher.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/MacFNLauncher";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
CFEF3B562D81C25B0081D63A /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
MACOSX_DEPLOYMENT_TARGET = 15.2;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.apfelteesaft.MacFNLauncherTests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_EMIT_LOC_STRINGS = NO;
|
||||
SWIFT_VERSION = 5.0;
|
||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MacFNLauncher.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/MacFNLauncher";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
CFEF3B582D81C25B0081D63A /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.apfelteesaft.MacFNLauncherUITests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_EMIT_LOC_STRINGS = NO;
|
||||
SWIFT_VERSION = 5.0;
|
||||
TEST_TARGET_NAME = MacFNLauncher;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
CFEF3B592D81C25B0081D63A /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.apfelteesaft.MacFNLauncherUITests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_EMIT_LOC_STRINGS = NO;
|
||||
SWIFT_VERSION = 5.0;
|
||||
TEST_TARGET_NAME = MacFNLauncher;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
CFEF3B272D81C2580081D63A /* Build configuration list for PBXProject "MacFNLauncher" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
CFEF3B4F2D81C25B0081D63A /* Debug */,
|
||||
CFEF3B502D81C25B0081D63A /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
CFEF3B512D81C25B0081D63A /* Build configuration list for PBXNativeTarget "MacFNLauncher" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
CFEF3B522D81C25B0081D63A /* Debug */,
|
||||
CFEF3B532D81C25B0081D63A /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
CFEF3B542D81C25B0081D63A /* Build configuration list for PBXNativeTarget "MacFNLauncherTests" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
CFEF3B552D81C25B0081D63A /* Debug */,
|
||||
CFEF3B562D81C25B0081D63A /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
CFEF3B572D81C25B0081D63A /* Build configuration list for PBXNativeTarget "MacFNLauncherUITests" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
CFEF3B582D81C25B0081D63A /* Debug */,
|
||||
CFEF3B592D81C25B0081D63A /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = CFEF3B242D81C2580081D63A /* Project object */;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
Vendored
BIN
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "16x16"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "16x16"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "32x32"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "32x32"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "128x128"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "128x128"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "256x256"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "256x256"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "512x512"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "512x512"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?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/>
|
||||
<key>com.apple.security.files.user-selected.read-only</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,433 @@
|
||||
import Cocoa
|
||||
import UniformTypeIdentifiers
|
||||
|
||||
class AppDelegate: NSObject, NSApplicationDelegate, NSWindowDelegate {
|
||||
var window: NSWindow!
|
||||
var launcherController: LauncherController!
|
||||
|
||||
func applicationDidFinishLaunching(_ notification: Notification) {
|
||||
window = NSWindow(
|
||||
contentRect: NSRect(x: 0, y: 0, width: 500, height: 400),
|
||||
styleMask: [.titled, .closable, .miniaturizable],
|
||||
backing: .buffered,
|
||||
defer: false
|
||||
)
|
||||
window.center()
|
||||
window.title = "MacFN Launcher"
|
||||
window.delegate = self
|
||||
window.isRestorable = true
|
||||
|
||||
launcherController = LauncherController()
|
||||
|
||||
window.contentView = launcherController.view
|
||||
window.makeKeyAndOrderFront(nil)
|
||||
|
||||
windowDidChangeEffectiveAppearance(window)
|
||||
}
|
||||
|
||||
func windowDidChangeEffectiveAppearance(_ notification: NSWindow) {
|
||||
launcherController.updateAppearance()
|
||||
}
|
||||
}
|
||||
|
||||
class LauncherController: NSObject, NSTextFieldDelegate {
|
||||
var view: NSView!
|
||||
var emailField: NSTextField!
|
||||
var passwordField: NSSecureTextField!
|
||||
var gamePathField: NSTextField!
|
||||
var browseButton: NSButton!
|
||||
var launchButton: NSButton!
|
||||
var statusLabel: NSTextField!
|
||||
var logoImageView: NSImageView!
|
||||
|
||||
var gamePath: String?
|
||||
var selectedAppName: String?
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
setupUI()
|
||||
|
||||
loadSavedCredentials()
|
||||
}
|
||||
|
||||
// MARK: - UI Setup
|
||||
func setupUI() {
|
||||
view = NSView(frame: NSRect(x: 0, y: 0, width: 500, height: 400))
|
||||
view.wantsLayer = true
|
||||
view.layer?.backgroundColor = NSColor(calibratedWhite: 0.1, alpha: 1.0).cgColor
|
||||
|
||||
setupLogo()
|
||||
|
||||
setupCredentialsFields()
|
||||
|
||||
setupGamePathField()
|
||||
|
||||
setupLaunchButton()
|
||||
|
||||
setupStatusLabel()
|
||||
|
||||
applyCustomStyling()
|
||||
|
||||
updateLaunchButtonState()
|
||||
}
|
||||
|
||||
func setupLogo() {
|
||||
let logoFrame = NSRect(x: (view.frame.width - 200) / 2, y: view.frame.height - 130, width: 200, height: 100)
|
||||
logoImageView = NSImageView(frame: logoFrame)
|
||||
|
||||
if let logoImage = NSImage(named: "FortniteIcon") {
|
||||
logoImageView.image = logoImage
|
||||
logoImageView.imageScaling = .scaleProportionallyUpOrDown
|
||||
} else {
|
||||
let titleLabel = NSTextField(labelWithString: "MacFN Launcher")
|
||||
titleLabel.frame = logoFrame
|
||||
titleLabel.alignment = .center
|
||||
titleLabel.font = NSFont.boldSystemFont(ofSize: 28)
|
||||
titleLabel.textColor = NSColor.white
|
||||
titleLabel.drawsBackground = false
|
||||
titleLabel.isBezeled = false
|
||||
titleLabel.isEditable = false
|
||||
view.addSubview(titleLabel)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
view.addSubview(logoImageView)
|
||||
}
|
||||
|
||||
func setupCredentialsFields() {
|
||||
let emailLabel = NSTextField(labelWithString: "Backend Email:")
|
||||
emailLabel.frame = NSRect(x: 30, y: view.frame.height - 170, width: 150, height: 20)
|
||||
emailLabel.textColor = NSColor.white
|
||||
emailLabel.drawsBackground = false
|
||||
emailLabel.isBezeled = false
|
||||
emailLabel.isEditable = false
|
||||
view.addSubview(emailLabel)
|
||||
|
||||
emailField = NSTextField(frame: NSRect(x: 30, y: view.frame.height - 195, width: view.frame.width - 60, height: 24))
|
||||
emailField.placeholderString = "Enter your email"
|
||||
emailField.delegate = self
|
||||
view.addSubview(emailField)
|
||||
|
||||
let passwordLabel = NSTextField(labelWithString: "Backend Password:")
|
||||
passwordLabel.frame = NSRect(x: 30, y: view.frame.height - 220, width: 150, height: 20)
|
||||
passwordLabel.textColor = NSColor.white
|
||||
passwordLabel.drawsBackground = false
|
||||
passwordLabel.isBezeled = false
|
||||
passwordLabel.isEditable = false
|
||||
view.addSubview(passwordLabel)
|
||||
|
||||
passwordField = NSSecureTextField(frame: NSRect(x: 30, y: view.frame.height - 245, width: view.frame.width - 60, height: 24))
|
||||
passwordField.placeholderString = "Enter your password"
|
||||
passwordField.delegate = self
|
||||
view.addSubview(passwordField)
|
||||
|
||||
let rememberMeCheckbox = NSButton(checkboxWithTitle: "Remember credentials", target: self, action: #selector(toggleRememberCredentials(_:)))
|
||||
rememberMeCheckbox.frame = NSRect(x: 30, y: view.frame.height - 270, width: 200, height: 20)
|
||||
rememberMeCheckbox.state = UserDefaults.standard.bool(forKey: "rememberCredentials") ? .on : .off
|
||||
rememberMeCheckbox.contentTintColor = NSColor.white
|
||||
view.addSubview(rememberMeCheckbox)
|
||||
}
|
||||
|
||||
func setupGamePathField() {
|
||||
let gamePathLabel = NSTextField(labelWithString: "Fortnite Application Path:")
|
||||
gamePathLabel.frame = NSRect(x: 30, y: view.frame.height - 295, width: 200, height: 20)
|
||||
gamePathLabel.textColor = NSColor.white
|
||||
gamePathLabel.drawsBackground = false
|
||||
gamePathLabel.isBezeled = false
|
||||
gamePathLabel.isEditable = false
|
||||
view.addSubview(gamePathLabel)
|
||||
|
||||
gamePathField = NSTextField(frame: NSRect(x: 30, y: view.frame.height - 320, width: view.frame.width - 110, height: 24))
|
||||
gamePathField.isEditable = false
|
||||
gamePathField.placeholderString = "Select Fortnite app"
|
||||
view.addSubview(gamePathField)
|
||||
|
||||
browseButton = NSButton(frame: NSRect(x: view.frame.width - 70, y: view.frame.height - 320, width: 40, height: 24))
|
||||
browseButton.bezelStyle = .rounded
|
||||
browseButton.image = NSImage(systemSymbolName: "folder", accessibilityDescription: "Browse")
|
||||
browseButton.target = self
|
||||
browseButton.action = #selector(browseForGame(_:))
|
||||
view.addSubview(browseButton)
|
||||
}
|
||||
|
||||
func setupLaunchButton() {
|
||||
launchButton = NSButton(frame: NSRect(x: (view.frame.width - 120) / 2, y: 25, width: 120, height: 40))
|
||||
launchButton.title = "Launch Game"
|
||||
launchButton.bezelStyle = .rounded
|
||||
launchButton.target = self
|
||||
launchButton.action = #selector(launchGame(_:))
|
||||
launchButton.isEnabled = false
|
||||
view.addSubview(launchButton)
|
||||
}
|
||||
|
||||
func setupStatusLabel() {
|
||||
statusLabel = NSTextField(labelWithString: "Ready")
|
||||
statusLabel.frame = NSRect(x: 30, y: 70, width: view.frame.width - 60, height: 20)
|
||||
statusLabel.alignment = .center
|
||||
statusLabel.textColor = NSColor.white
|
||||
statusLabel.drawsBackground = false
|
||||
statusLabel.isBezeled = false
|
||||
statusLabel.isEditable = false
|
||||
view.addSubview(statusLabel)
|
||||
}
|
||||
|
||||
func applyCustomStyling() {
|
||||
for field in [emailField, passwordField, gamePathField].compactMap({ $0 }) {
|
||||
field.backgroundColor = NSColor(calibratedWhite: 0.2, alpha: 1.0)
|
||||
field.textColor = NSColor.white
|
||||
field.isBezeled = true
|
||||
field.bezelStyle = .roundedBezel
|
||||
}
|
||||
|
||||
launchButton.contentTintColor = NSColor.systemGreen
|
||||
}
|
||||
|
||||
func updateAppearance() {
|
||||
let isDark = isDarkMode()
|
||||
let textColor = isDark ? NSColor.white : NSColor.black
|
||||
let backgroundColor = isDark ? NSColor(calibratedWhite: 0.1, alpha: 1.0) : NSColor(calibratedWhite: 0.9, alpha: 1.0)
|
||||
|
||||
view.layer?.backgroundColor = backgroundColor.cgColor
|
||||
|
||||
for subview in view.subviews {
|
||||
if let label = subview as? NSTextField, !label.isEditable && !label.isBezeled {
|
||||
if label != statusLabel {
|
||||
label.textColor = textColor
|
||||
}
|
||||
}
|
||||
if let checkbox = subview as? NSButton, checkbox.title == "Remember credentials" {
|
||||
checkbox.contentTintColor = textColor
|
||||
}
|
||||
}
|
||||
|
||||
for field in [emailField, passwordField, gamePathField].compactMap({ $0 }) {
|
||||
field.backgroundColor = isDark ? NSColor(calibratedWhite: 0.2, alpha: 1.0) : NSColor.white
|
||||
field.textColor = textColor
|
||||
}
|
||||
|
||||
if statusLabel.stringValue == "Ready" {
|
||||
statusLabel.textColor = isDark ? NSColor.white : NSColor.darkGray
|
||||
}
|
||||
}
|
||||
|
||||
func isDarkMode() -> Bool {
|
||||
if let window = view.window {
|
||||
return window.effectiveAppearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
|
||||
}
|
||||
|
||||
return NSApp.effectiveAppearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
|
||||
}
|
||||
|
||||
// MARK: - Actions
|
||||
|
||||
@objc func browseForGame(_ sender: Any) {
|
||||
let openPanel = NSOpenPanel()
|
||||
openPanel.title = "Select Fortnite Installation Directory"
|
||||
openPanel.allowsMultipleSelection = false
|
||||
openPanel.canChooseDirectories = true
|
||||
openPanel.canChooseFiles = false
|
||||
|
||||
openPanel.beginSheetModal(for: view.window!) { [weak self] response in
|
||||
guard let self = self, response == .OK, let selectedDir = openPanel.url else { return }
|
||||
|
||||
let fortniteGamePath = selectedDir.appendingPathComponent("FortniteGame")
|
||||
let enginePath = selectedDir.appendingPathComponent("Engine")
|
||||
|
||||
let fileManager = FileManager.default
|
||||
guard fileManager.fileExists(atPath: fortniteGamePath.path) &&
|
||||
fileManager.fileExists(atPath: enginePath.path) else {
|
||||
self.statusLabel.stringValue = "Error: Selected directory must contain FortniteGame and Engine folders"
|
||||
self.statusLabel.textColor = NSColor.systemRed
|
||||
return
|
||||
}
|
||||
|
||||
let fortniteAppPath = fortniteGamePath
|
||||
.appendingPathComponent("Binaries")
|
||||
.appendingPathComponent("Mac")
|
||||
.appendingPathComponent("FortniteClient-Mac-Shipping.app")
|
||||
|
||||
guard fileManager.fileExists(atPath: fortniteAppPath.path) else {
|
||||
self.statusLabel.stringValue = "Error: Fortnite application not found at expected location"
|
||||
self.statusLabel.textColor = NSColor.systemRed
|
||||
return
|
||||
}
|
||||
|
||||
self.selectedAppName = "FortniteClient-Mac-Shipping"
|
||||
|
||||
if let bundlePath = self.findExecutablePath(in: fortniteAppPath) {
|
||||
self.gamePath = bundlePath
|
||||
self.gamePathField.stringValue = fortniteAppPath.path
|
||||
|
||||
self.statusLabel.stringValue = "Fortnite detected!"
|
||||
self.statusLabel.textColor = NSColor.systemGreen
|
||||
|
||||
self.updateLaunchButtonState()
|
||||
} else {
|
||||
self.statusLabel.stringValue = "Error: Could not find executable in app bundle"
|
||||
self.statusLabel.textColor = NSColor.systemRed
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@objc func launchGame(_ sender: Any) {
|
||||
guard let gamePath = gamePath else {
|
||||
statusLabel.stringValue = "Error: Missing game path"
|
||||
statusLabel.textColor = NSColor.systemRed
|
||||
return
|
||||
}
|
||||
|
||||
let executablePathComponents = gamePath.components(separatedBy: "/Contents/MacOS/")
|
||||
guard executablePathComponents.count > 0 else {
|
||||
statusLabel.stringValue = "Error: Invalid application path"
|
||||
statusLabel.textColor = NSColor.systemRed
|
||||
return
|
||||
}
|
||||
|
||||
let appBundlePath = executablePathComponents[0]
|
||||
print("Application bundle path: \(appBundlePath)")
|
||||
|
||||
let email = emailField.stringValue
|
||||
let password = passwordField.stringValue
|
||||
|
||||
if email.isEmpty || password.isEmpty {
|
||||
statusLabel.stringValue = "Error: Email and password required"
|
||||
statusLabel.textColor = NSColor.systemRed
|
||||
return
|
||||
}
|
||||
|
||||
if UserDefaults.standard.bool(forKey: "rememberCredentials") {
|
||||
saveCredentials(email: email, password: password)
|
||||
}
|
||||
|
||||
let arguments = [
|
||||
"-epicapp=Fortnite",
|
||||
"-epicenv=Prod",
|
||||
"-epiclocale=en-us",
|
||||
"-epicportal",
|
||||
"-noeac",
|
||||
"-fromfl=eac",
|
||||
"-fltoken=h1cdhchd10150221h130eB56",
|
||||
"-skippatchcheck",
|
||||
"-AUTH_LOGIN=\(email)",
|
||||
"-AUTH_PASSWORD=\(password)",
|
||||
"-AUTH_TYPE=epic"
|
||||
]
|
||||
|
||||
statusLabel.stringValue = "Launching Fortnite..."
|
||||
statusLabel.textColor = NSColor.systemBlue
|
||||
|
||||
DispatchQueue.global(qos: .userInitiated).async { [weak self] in
|
||||
let workspace = NSWorkspace.shared
|
||||
let configuration = NSWorkspace.OpenConfiguration()
|
||||
configuration.arguments = arguments
|
||||
|
||||
print("Launching application with bundle URL: \(appBundlePath)")
|
||||
print("With arguments: \(arguments)")
|
||||
|
||||
workspace.openApplication(at: URL(fileURLWithPath: appBundlePath),
|
||||
configuration: configuration) { (app, error) in
|
||||
DispatchQueue.main.async {
|
||||
if let error = error {
|
||||
self?.statusLabel.stringValue = "Error launching game: \(error.localizedDescription)"
|
||||
self?.statusLabel.textColor = NSColor.systemRed
|
||||
print("Launch error details: \(error)")
|
||||
} else {
|
||||
self?.statusLabel.stringValue = "Fortnite launched successfully!"
|
||||
self?.statusLabel.textColor = NSColor.systemGreen
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@objc func toggleRememberCredentials(_ sender: NSButton) {
|
||||
let shouldRemember = sender.state == .on
|
||||
UserDefaults.standard.set(shouldRemember, forKey: "rememberCredentials")
|
||||
|
||||
if !shouldRemember {
|
||||
UserDefaults.standard.removeObject(forKey: "savedEmail")
|
||||
UserDefaults.standard.removeObject(forKey: "savedPassword")
|
||||
} else {
|
||||
if !emailField.stringValue.isEmpty && !passwordField.stringValue.isEmpty {
|
||||
saveCredentials(email: emailField.stringValue, password: passwordField.stringValue)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - NSTextFieldDelegate
|
||||
|
||||
func controlTextDidChange(_ notification: Notification) {
|
||||
updateLaunchButtonState()
|
||||
}
|
||||
|
||||
// MARK: - Helper Methods
|
||||
|
||||
func updateLaunchButtonState() {
|
||||
launchButton.isEnabled = !emailField.stringValue.isEmpty &&
|
||||
!passwordField.stringValue.isEmpty &&
|
||||
gamePath != nil &&
|
||||
validateAppName()
|
||||
}
|
||||
|
||||
func validateAppName() -> Bool {
|
||||
return selectedAppName == "FortniteClient-Mac-Shipping"
|
||||
}
|
||||
|
||||
func findExecutablePath(in appURL: URL) -> String? {
|
||||
let executableName = "FortniteClient-Mac-Shipping"
|
||||
|
||||
let directPath = appURL.appendingPathComponent("Contents/MacOS/\(executableName)").path
|
||||
|
||||
if FileManager.default.fileExists(atPath: directPath) {
|
||||
print("Found executable at: \(directPath)")
|
||||
return directPath
|
||||
}
|
||||
|
||||
if let bundle = Bundle(url: appURL), let executablePath = bundle.executableURL?.path {
|
||||
print("Found executable from bundle at: \(executablePath)")
|
||||
return executablePath
|
||||
}
|
||||
|
||||
print("Looking for executable in app at: \(appURL.path)")
|
||||
|
||||
let macOSPath = appURL.appendingPathComponent("Contents/MacOS")
|
||||
do {
|
||||
let contents = try FileManager.default.contentsOfDirectory(atPath: macOSPath.path)
|
||||
print("Contents of MacOS directory: \(contents)")
|
||||
|
||||
if !contents.isEmpty {
|
||||
let firstExecutable = macOSPath.appendingPathComponent(contents[0]).path
|
||||
print("Using first item as executable: \(firstExecutable)")
|
||||
return firstExecutable
|
||||
}
|
||||
} catch {
|
||||
print("Error listing Contents/MacOS directory: \(error)")
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
// MARK: - Credentials Management
|
||||
|
||||
func saveCredentials(email: String, password: String) {
|
||||
UserDefaults.standard.set(email, forKey: "savedEmail")
|
||||
UserDefaults.standard.set(password, forKey: "savedPassword")
|
||||
}
|
||||
|
||||
func loadSavedCredentials() {
|
||||
if UserDefaults.standard.bool(forKey: "rememberCredentials") {
|
||||
emailField.stringValue = UserDefaults.standard.string(forKey: "savedEmail") ?? ""
|
||||
passwordField.stringValue = UserDefaults.standard.string(forKey: "savedPassword") ?? ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@main
|
||||
class MacFNLauncherApp: NSObject {
|
||||
static func main() {
|
||||
let app = NSApplication.shared
|
||||
let delegate = AppDelegate()
|
||||
app.delegate = delegate
|
||||
app.run()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MacFNLauncherTests.swift
|
||||
// MacFNLauncherTests
|
||||
//
|
||||
// Created by apfelteesaft on 12.03.25.
|
||||
//
|
||||
|
||||
import Testing
|
||||
@testable import MacFNLauncher
|
||||
|
||||
struct MacFNLauncherTests {
|
||||
|
||||
@Test func example() async throws {
|
||||
// Write your test here and use APIs like `#expect(...)` to check expected conditions.
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// MacFNLauncherUITests.swift
|
||||
// MacFNLauncherUITests
|
||||
//
|
||||
// Created by apfelteesaft on 12.03.25.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
|
||||
final class MacFNLauncherUITests: XCTestCase {
|
||||
|
||||
override func setUpWithError() throws {
|
||||
// Put setup code here. This method is called before the invocation of each test method in the class.
|
||||
|
||||
// In UI tests it is usually best to stop immediately when a failure occurs.
|
||||
continueAfterFailure = false
|
||||
|
||||
// In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
|
||||
}
|
||||
|
||||
override func tearDownWithError() throws {
|
||||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
||||
}
|
||||
|
||||
@MainActor
|
||||
func testExample() throws {
|
||||
// UI tests must launch the application that they test.
|
||||
let app = XCUIApplication()
|
||||
app.launch()
|
||||
|
||||
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
||||
}
|
||||
|
||||
@MainActor
|
||||
func testLaunchPerformance() throws {
|
||||
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) {
|
||||
// This measures how long it takes to launch your application.
|
||||
measure(metrics: [XCTApplicationLaunchMetric()]) {
|
||||
XCUIApplication().launch()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// MacFNLauncherUITestsLaunchTests.swift
|
||||
// MacFNLauncherUITests
|
||||
//
|
||||
// Created by apfelteesaft on 12.03.25.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
|
||||
final class MacFNLauncherUITestsLaunchTests: XCTestCase {
|
||||
|
||||
override class var runsForEachTargetApplicationUIConfiguration: Bool {
|
||||
true
|
||||
}
|
||||
|
||||
override func setUpWithError() throws {
|
||||
continueAfterFailure = false
|
||||
}
|
||||
|
||||
@MainActor
|
||||
func testLaunch() throws {
|
||||
let app = XCUIApplication()
|
||||
app.launch()
|
||||
|
||||
// Insert steps here to perform after app launch but before taking a screenshot,
|
||||
// such as logging into a test account or navigating somewhere in the app
|
||||
|
||||
let attachment = XCTAttachment(screenshot: app.screenshot())
|
||||
attachment.name = "Launch Screen"
|
||||
attachment.lifetime = .keepAlways
|
||||
add(attachment)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user