Skip to content

Commit

Permalink
Merge branch 'meta' into meta-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
hbsgithub authored Jun 7, 2023
2 parents af33ded + 3b1b5d1 commit 0ccb07d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 15 deletions.
24 changes: 17 additions & 7 deletions ClashX.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@
2753484F2A3082FD0077B458 /* TunModeSettingCommand.swift */,
8A2BBEA627A03ACB0081EBEF /* ProxySetting.sdef */,
8ACD21BA27A04C7800BC4632 /* ProxySettingCommand.swift */,
27F9A6272A1FB25500C50C38 /* TunModeSettingCommand.swift */,
8ACD21BC27A04ED500BC4632 /* ProxyModeChangeCommand.swift */,
);
path = AppleScript;
Expand Down Expand Up @@ -647,8 +648,9 @@
49CF3B1520CD7463001EBF94 /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = YES;
LastSwiftUpdateCheck = 1030;
LastUpgradeCheck = 1020;
LastUpgradeCheck = 1430;
ORGANIZATIONNAME = west2online;
TargetAttributes = {
49CF3B1C20CD7463001EBF94 = {
Expand Down Expand Up @@ -898,6 +900,7 @@
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;
Expand All @@ -906,6 +909,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "Mac Developer";
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
Expand Down Expand Up @@ -959,6 +963,7 @@
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;
Expand All @@ -967,6 +972,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "Mac Developer";
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand Down Expand Up @@ -996,9 +1002,11 @@
CODE_SIGN_ENTITLEMENTS = ClashX/ClashX.entitlements;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Manual;

COMBINE_HIDPI_IMAGES = YES;
COMPRESS_PNG_FILES = YES;
CURRENT_PROJECT_VERSION = 0;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -1018,12 +1026,11 @@
"$(inherited)",
"$(PROJECT_DIR)/ClashX",
);
MACOSX_DEPLOYMENT_TARGET = 10.13;
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
MARKETING_VERSION = v1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.metacubex.ClashX.meta;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
STRIP_INSTALLED_PRODUCT = NO;
STRIP_PNG_TEXT = YES;
SWIFT_OBJC_BRIDGING_HEADER = "ClashX/ClashX-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand All @@ -1041,10 +1048,12 @@
CODE_SIGN_ENTITLEMENTS = ClashX/ClashX.entitlements;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Manual;

COMBINE_HIDPI_IMAGES = YES;
COMPRESS_PNG_FILES = YES;
COPY_PHASE_STRIP = YES;
CURRENT_PROJECT_VERSION = 0;
DEAD_CODE_STRIPPING = YES;
DEPLOYMENT_POSTPROCESSING = YES;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -1065,13 +1074,12 @@
"$(inherited)",
"$(PROJECT_DIR)/ClashX",
);
MACOSX_DEPLOYMENT_TARGET = 10.13;
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
MARKETING_VERSION = v1.0;
OTHER_CODE_SIGN_FLAGS = "--timestamp";
PRODUCT_BUNDLE_IDENTIFIER = com.metacubex.ClashX.meta;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
STRIP_INSTALLED_PRODUCT = YES;
STRIP_PNG_TEXT = YES;
SWIFT_OBJC_BRIDGING_HEADER = "ClashX/ClashX-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand All @@ -1087,6 +1095,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 3;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = "$(SRCROOT)/ProxyConfigHelper/Helper-Info.plist";
Expand All @@ -1096,7 +1105,7 @@
"@loader_path/../Frameworks",
);
LIBRARY_SEARCH_PATHS = "$(inherited)";
MACOSX_DEPLOYMENT_TARGET = 10.13;
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
MARKETING_VERSION = 1.2;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
Expand Down Expand Up @@ -1129,6 +1138,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 3;
DEAD_CODE_STRIPPING = YES;
DEPLOYMENT_POSTPROCESSING = YES;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -1139,7 +1149,7 @@
"@loader_path/../Frameworks",
);
LIBRARY_SEARCH_PATHS = "$(inherited)";
MACOSX_DEPLOYMENT_TARGET = 10.13;
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
MARKETING_VERSION = 1.2;
MTL_FAST_MATH = YES;
OTHER_LDFLAGS = (
Expand Down
2 changes: 1 addition & 1 deletion ClashX/AppleScript/ProxyModeChangeCommand.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// ProxyModeChangeCommand.swift
// ClashX
// ClashX.Meta
//
// Created by Vince-hz on 2022/1/25.
// Copyright © 2022 west2online. All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion ClashX/AppleScript/ProxySettingCommand.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// ProxySettingCommand.swift
// ClashXX
// ClashX.Meta
//
// Created by Vince-hz on 2022/1/25.
// Copyright © 2022 west2online. All rights reserved.
Expand Down
12 changes: 6 additions & 6 deletions ClashX/AppleScript/TunModeSettingCommand.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//
// ProxySettingCommand.swift
// ClashXX
// TunModeSettingCommand.swift
// ClashX.Meta
//
// Created by Vince-hz on 2022/1/25.
// Copyright © 2022 west2online. All rights reserved.
// Created by hbsgithub on 2023/5/26.
// Copyright © 2023 west2online. All rights reserved.
//

import Foundation
Expand All @@ -19,9 +19,9 @@ import AppKit
let menuItem: NSMenuItem
menuItem = delegate.tunModeMenuItem
if menuItem.state == .on {
menuItem.state = .on// 当条件为真时执行的代码
menuItem.state = .on
} else {
menuItem.state = .off// 当条件为假时执行的代码
menuItem.state = .off
}
delegate.tunMode(menuItem)
return nil
Expand Down

0 comments on commit 0ccb07d

Please sign in to comment.