Skip to content

CodexBar 是一个 macOS 菜单栏应用,用于查看本机 Codex 账号状态、额度、Token 用量、详细统计信息

18.0 KB
Raw Blame
{
  "default-configuration": "Release",
  "configurations": [
    { "name": "Debug", "file": "Config/Version.xcconfig" },
    { "name": "DebugTest", "file": "Config/Version.xcconfig" },
    { "name": "Release", "file": "Config/Version.xcconfig" },
  ],
  "localizations": {
    "development": "zh-Hans",
    "supported": [
      "Base",
      "en",
    ],
  },
  "packages": [
    {
      "kind": "remote",
      "repository": "https://github.com/tree-sitter/swift-tree-sitter",
      "version": {
        "up-to-next-minor-version": "0.25.0",
      },
    }, {
      "kind": "remote",
      "repository": "https://github.com/tree-sitter/tree-sitter-bash",
      "version": {
        "up-to-next-minor-version": "0.25.1",
      },
    }, {
      "kind": "remote",
      "repository": "https://github.com/sparkle-project/Sparkle",
      "version": {
        "up-to-next-major-version": "2.10.1",
      },
    },
  ],
  "files": [
    {
      "kind": "folder",
      "path": "CodexBar",
      "target-membership": [
        "CodexBar",
        "CodexBarTests",
      ],
      "membership-exceptions": [
        {
          "target": "CodexBarTests",
          "exclusions": [
            "App/CodexBarMain.swift",
            "Resources/AppIcon.icon",
            "Resources/Info.plist",
          ],
        }, {
          "target": "CodexBar",
          "exclusions": [
            "Resources/Info.plist",
          ],
        },
      ],
    }, {
      "kind": "folder",
      "path": "CodexBarHelper",
      "membership-exceptions": [
        {
          "target": "CodexBarPowerHelperManager",
          "inclusions": [
            "Power/Manager/PowerHelperManagerMain.swift",
            "Power/Manager/Resources/AppIcon.icon",
            "Power/Shared/CodexBarPowerHelperXPC.swift",
            "Power/Shared/PowerHelperManagement.swift",
          ],
        }, {
          "build-phase": "CodexBarPowerHelperManager/copy/Copy LaunchDaemons",
          "inclusions": [
            "Power/Daemon/CodexBarPowerHelper.plist",
            "Power/Daemon/CodexBarPowerHelperDebug.plist",
          ],
        }, {
          "target": "CodexBarPowerHelperTests",
          "inclusions": [
            "Power/Daemon/OwnershipStore.swift",
            "Power/Daemon/Pmset.swift",
            "Power/Daemon/PowerHelperError.swift",
            "Power/Daemon/PowerHelperRuntime.swift",
            "Power/Shared/CodexBarPowerHelperXPC.swift",
            "Power/Shared/PowerHelperManagement.swift",
          ],
        }, {
          "target": "CodexBarTests",
          "inclusions": [
            "Power/Shared/CodexBarPowerHelperXPC.swift",
            "Power/Shared/PowerHelperManagement.swift",
          ],
        }, {
          "target": "CodexBar",
          "inclusions": [
            "Power/Shared/CodexBarPowerHelperXPC.swift",
            "Power/Shared/PowerHelperManagement.swift",
          ],
        }, {
          "target": "CodexBarPowerHelper",
          "inclusions": [
            "Power/Daemon/OwnershipStore.swift",
            "Power/Daemon/Pmset.swift",
            "Power/Daemon/PowerHelperError.swift",
            "Power/Daemon/PowerHelperRuntime.swift",
            "Power/Daemon/main.swift",
            "Power/Shared/CodexBarPowerHelperXPC.swift",
            "Power/Shared/PowerHelperManagement.swift",
          ],
        },
      ],
    }, {
      "kind": "folder",
      "path": "Tests",
      "target-membership": [
        "CodexBarTests",
      ],
      "membership-exceptions": [
        {
          "target": "CodexBarPowerHelperTests",
          "inclusions": [
            "Helpers/Power/PowerHelperSleepTests.swift",
            "Helpers/Power/PowerHelperTestSupport.swift",
            "Helpers/Power/PowerHelperUpdateTests.swift",
          ],
        }, {
          "target": "CodexBarTests",
          "exclusions": [
            "Helpers/Power/PowerHelperSleepTests.swift",
            "Helpers/Power/PowerHelperTestSupport.swift",
            "Helpers/Power/PowerHelperUpdateTests.swift",
          ],
        },
      ],
    },
    { "kind": "folder", "path": "Shared", "target-membership": [ "CodexBar", "CodexBarPowerHelper", "CodexBarPowerHelperManager", "CodexBarPowerHelperTests", "CodexBarTests" ] },
    {
      "kind": "group",
      "path": "Config",
      "children": [
        { "path": "Version.xcconfig" },
        { "path": "BuildNumber.xcconfig" },
        { "path": "Unit.xctestplan" },
        { "path": "Integration.xctestplan" },
        { "path": "Standard.xctestplan" },
        { "path": "Sanitizers.xctestplan" },
      ],
    }, {
      "kind": "group",
      "name": "Products",
      "children": [
        { "path": "<PRODUCTS>/CodexBar Debug.app", "id": "C4A0FD952FD9302E000263A7", "type": "wrapper.application", "index": false },
        { "path": "<PRODUCTS>/CodexBarTests.xctest", "id": "D10000000000000000000002", "type": "wrapper.cfbundle", "index": false },
        { "path": "<PRODUCTS>/CodexBarPowerHelperTests.xctest", "id": "E10000000000000000000002", "type": "wrapper.cfbundle", "index": false },
        { "path": "<PRODUCTS>/CodexBarPowerHelper", "id": "B10000000000000000000014", "type": "compiled.mach-o.executable", "index": false, "target-membership": [ { "build-phase": "CodexBarPowerHelperManager/copy/Embed CodexBar Power Helper", "code-sign-on-copy": true } ] },
        { "path": "<PRODUCTS>/CodexBar Power Helper Debug.app", "id": "F10000000000000000000002", "type": "wrapper.application", "index": false, "target-membership": [ "CodexBar/copy/Embed Power Helper Manager" ] },
        { "path": "<PRODUCTS>/CodexBar Power Helper.app", "type": "wrapper.application", "index": false, "target-membership": [ "CodexBar/copy/Embed Power Helper Manager" ] },
      ],
    },
  ],
  "targets": [
    {
      "name": "CodexBarPowerHelperManager",
      "id": "F10000000000000000000010",
      "product": "Products/CodexBar Power Helper Debug.app",
      "product-type": "application",
      "dependencies": [
        "CodexBarPowerHelper",
      ],
      "build-phases": [
        "compile-sources",
        "frameworks",
        "resources",
        {
          "kind": "copy",
          "name": "Embed CodexBar Power Helper",
          "bundle-base-path": "root",
          "relative-path": "Contents/Helpers",
        }, {
          "kind": "copy",
          "name": "Copy LaunchDaemons",
          "bundle-base-path": "root",
          "relative-path": "Contents/Library/LaunchDaemons",
        },
      ],
      "build-settings": {
        "ASSETCATALOG_COMPILER_APPICON_NAME": "AppIcon",
        "CODE_SIGN_IDENTITY": "Apple Development",
        "CODE_SIGN_STYLE": "Automatic",
        "ENABLE_APP_SANDBOX": "NO",
        "ENABLE_HARDENED_RUNTIME": "YES",
        "EXCLUDED_SOURCE_FILE_NAMES[config=DebugTest]": "CodexBarPowerHelper.plist",
        "EXCLUDED_SOURCE_FILE_NAMES[config=Debug]": "CodexBarPowerHelper.plist",
        "EXCLUDED_SOURCE_FILE_NAMES[config=Release]": "CodexBarPowerHelperDebug.plist",
        "GENERATE_INFOPLIST_FILE": "YES",
        "INFOPLIST_KEY_CFBundleDisplayName[config=DebugTest]": "CodexBar Power Helper Debug",
        "INFOPLIST_KEY_CFBundleDisplayName[config=Debug]": "CodexBar Power Helper Debug",
        "INFOPLIST_KEY_CFBundleDisplayName[config=Release]": "CodexBar Power Helper",
        "INFOPLIST_KEY_LSUIElement": "YES",
        "PRODUCT_BUNDLE_IDENTIFIER[config=DebugTest]": "app.zabrian.codexbar.helper.power.manager.debug",
        "PRODUCT_BUNDLE_IDENTIFIER[config=Debug]": "app.zabrian.codexbar.helper.power.manager.debug",
        "PRODUCT_BUNDLE_IDENTIFIER[config=Release]": "app.zabrian.codexbar.helper.power.manager",
        "PRODUCT_NAME": "$(TARGET_NAME)",
        "SKIP_INSTALL": "YES",
        "SWIFT_EMIT_LOC_STRINGS": "NO",
        "WRAPPER_NAME[config=DebugTest]": "CodexBar Power Helper Debug.app",
        "WRAPPER_NAME[config=Debug]": "CodexBar Power Helper Debug.app",
        "WRAPPER_NAME[config=Release]": "CodexBar Power Helper.app",
      },
    }, {
      "name": "CodexBarPowerHelperTests",
      "id": "E10000000000000000000010",
      "product": "Products/CodexBarPowerHelperTests.xctest",
      "product-type": "bundle.unit-test",
      "build-phases": [
        "compile-sources",
        "frameworks",
      ],
      "build-settings": {
        "CODE_SIGN_STYLE": "Automatic",
        "ENABLE_APP_SANDBOX": "NO",
        "GENERATE_INFOPLIST_FILE": "YES",
        "PRODUCT_BUNDLE_IDENTIFIER": "app.zabrian.codexbar.helper.power.tests",
        "PRODUCT_NAME": "$(TARGET_NAME)",
        "SKIP_INSTALL": "YES",
        "SWIFT_EMIT_LOC_STRINGS": "NO",
        "SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY": "YES",
      },
    }, {
      "name": "CodexBarTests",
      "id": "D10000000000000000000010",
      "product": "Products/CodexBarTests.xctest",
      "product-type": "bundle.unit-test",
      "build-phases": [
        "compile-sources",
        "frameworks",
        "resources",
      ],
      "package-product-members": [
        {
          "package": "Sparkle",
          "product-name": "Sparkle",
          "build-phase": { "build-phase": "frameworks" },
        }, {
          "package": "swift-tree-sitter",
          "product-name": "SwiftTreeSitter",
          "build-phase": { "build-phase": "frameworks" },
        }, {
          "package": "tree-sitter-bash",
          "product-name": "TreeSitterBash",
          "build-phase": { "build-phase": "frameworks" },
        },
      ],
      "build-settings": {
        "CODE_SIGN_STYLE": "Automatic",
        "ENABLE_APP_SANDBOX": "NO",
        "GENERATE_INFOPLIST_FILE": "YES",
        "LD_RUNPATH_SEARCH_PATHS": [
          "$(inherited)",
          "@loader_path/../Frameworks",
          "@executable_path/../Frameworks",
        ],
        "PRODUCT_BUNDLE_IDENTIFIER": "app.zabrian.codexbar.tests",
        "PRODUCT_NAME": "$(TARGET_NAME)",
        "SKIP_INSTALL": "YES",
        "SWIFT_APPROACHABLE_CONCURRENCY": "YES",
        "SWIFT_DEFAULT_ACTOR_ISOLATION": "MainActor",
        "SWIFT_EMIT_LOC_STRINGS": "NO",
        "SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY": "YES",
      },
    }, {
      "name": "CodexBar",
      "id": "C4A0FD942FD9302E000263A7",
      "product": "Products/CodexBar Debug.app",
      "product-type": "application",
      "dependencies": [
        "CodexBarPowerHelperManager",
      ],
      "build-phases": [
        "compile-sources",
        "frameworks",
        "resources",
        {
          "kind": "copy",
          "name": "Embed Power Helper Manager",
          "bundle-base-path": "root",
          "relative-path": "Contents/Helpers",
        },
      ],
      "package-product-members": [
        {
          "package": "Sparkle",
          "product-name": "Sparkle",
          "build-phase": { "build-phase": "frameworks" },
        }, {
          "package": "swift-tree-sitter",
          "product-name": "SwiftTreeSitter",
          "build-phase": { "build-phase": "frameworks" },
        }, {
          "package": "tree-sitter-bash",
          "product-name": "TreeSitterBash",
          "build-phase": { "build-phase": "frameworks" },
        },
      ],
      "build-settings": {
        "ASSETCATALOG_COMPILER_APPICON_NAME": "AppIcon",
        "ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME": "AccentColor",
        "CODE_SIGN_ENTITLEMENTS": "CodexBar/Resources/CodexBar.entitlements",
        "CODE_SIGN_IDENTITY[config=DebugTest][sdk=macosx*]": "Apple Development",
        "CODE_SIGN_IDENTITY[config=Debug][sdk=macosx*]": "Apple Development",
        "CODE_SIGN_IDENTITY[config=Release]": "Apple Development",
        "CODE_SIGN_STYLE": "Automatic",
        "COMBINE_HIDPI_IMAGES": "YES",
        "ENABLE_APP_SANDBOX": "NO",
        "ENABLE_HARDENED_RUNTIME": "YES",
        "ENABLE_PREVIEWS": "YES",
        "ENABLE_USER_SELECTED_FILES": "NO",
        "EXCLUDED_SOURCE_FILE_NAMES[config=DebugTest]": [
          "$(inherited)",
          "CodexBarPowerHelper.plist",
          "\"CodexBar Power Helper.app\"",
        ],
        "EXCLUDED_SOURCE_FILE_NAMES[config=Debug]": [
          "$(inherited)",
          "CodexBarPowerHelper.plist",
          "\"CodexBar Power Helper.app\"",
        ],
        "EXCLUDED_SOURCE_FILE_NAMES[config=Release]": [
          "$(inherited)",
          "CodexBarPowerHelperDebug.plist",
          "\"CodexBar Power Helper Debug.app\"",
        ],
        "GENERATE_INFOPLIST_FILE": "NO",
        "INFOPLIST_FILE": "CodexBar/Resources/Info.plist",
        "INFOPLIST_KEY_CFBundleDisplayName[config=DebugTest]": "CodexBar Debug",
        "INFOPLIST_KEY_CFBundleDisplayName[config=Debug]": "CodexBar Debug",
        "INFOPLIST_KEY_CFBundleDisplayName[config=Release]": "CodexBar",
        "INFOPLIST_KEY_LSApplicationCategoryType": "public.app-category.developer-tools",
        "LD_RUNPATH_SEARCH_PATHS": [
          "$(inherited)",
          "@executable_path/../Frameworks",
        ],
        "PRODUCT_BUNDLE_IDENTIFIER[config=DebugTest]": "app.zabrian.codexbar.debug",
        "PRODUCT_BUNDLE_IDENTIFIER[config=Debug]": "app.zabrian.codexbar.debug",
        "PRODUCT_BUNDLE_IDENTIFIER[config=Release]": "app.zabrian.codexbar",
        "PRODUCT_NAME": "$(TARGET_NAME)",
        "PROVISIONING_PROFILE_SPECIFIER[config=Release]": "$(CODEXBAR_PROVISIONING_PROFILE_SPECIFIER)",
        "SWIFT_APPROACHABLE_CONCURRENCY": "YES",
        "SWIFT_DEFAULT_ACTOR_ISOLATION": "MainActor",
        "SWIFT_EMIT_LOC_STRINGS": "YES",
        "SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY": "YES",
        "WRAPPER_NAME[config=DebugTest]": "CodexBar Debug.app",
        "WRAPPER_NAME[config=Debug]": "CodexBar Debug.app",
      },
    }, {
      "name": "CodexBarPowerHelper",
      "id": "B10000000000000000000031",
      "product": "Products/CodexBarPowerHelper",
      "product-type": "tool",
      "build-phases": [
        "compile-sources",
        "frameworks",
      ],
      "build-settings": {
        "CODE_SIGN_IDENTITY[sdk=macosx*]": "Apple Development",
        "CODE_SIGN_STYLE": "Automatic",
        "CREATE_INFOPLIST_SECTION_IN_BINARY": "YES",
        "ENABLE_APP_SANDBOX": "NO",
        "ENABLE_HARDENED_RUNTIME": "YES",
        "GENERATE_INFOPLIST_FILE": "YES",
        "PRODUCT_BUNDLE_IDENTIFIER[config=DebugTest]": "app.zabrian.codexbar.helper.power.debug",
        "PRODUCT_BUNDLE_IDENTIFIER[config=Debug]": "app.zabrian.codexbar.helper.power.debug",
        "PRODUCT_BUNDLE_IDENTIFIER[config=Release]": "app.zabrian.codexbar.helper.power",
        "PRODUCT_NAME": "$(TARGET_NAME)",
        "SKIP_INSTALL": "YES",
        "SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY": "YES",
      },
    },
  ],
  "build-settings": {
    "ALWAYS_SEARCH_USER_PATHS": "NO",
    "ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS": "YES",
    "CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED": "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",
    "CODEXBAR_AUTO_INCREMENT_BUILD_NUMBER[config=DebugTest]": "NO",
    "CODE_SIGN_INJECT_BASE_ENTITLEMENTS[config=Release]": "NO",
    "COMPILATION_CACHE_ENABLE_CACHING": "YES",
    "COPY_PHASE_STRIP": "NO",
    "DEAD_CODE_STRIPPING": "YES",
    "DEBUG_INFORMATION_FORMAT[config=DebugTest]": "dwarf",
    "DEBUG_INFORMATION_FORMAT[config=Debug]": "dwarf",
    "DEBUG_INFORMATION_FORMAT[config=Release]": "dwarf-with-dsym",
    "DEVELOPMENT_TEAM": "4KJ362VJW5",
    "ENABLE_NS_ASSERTIONS[config=Release]": "NO",
    "ENABLE_STRICT_OBJC_MSGSEND": "YES",
    "ENABLE_TESTABILITY[config=DebugTest]": "YES",
    "ENABLE_TESTABILITY[config=Debug]": "YES",
    "ENABLE_USER_SCRIPT_SANDBOXING": "YES",
    "GCC_C_LANGUAGE_STANDARD": "gnu17",
    "GCC_DYNAMIC_NO_PIC[config=DebugTest]": "NO",
    "GCC_DYNAMIC_NO_PIC[config=Debug]": "NO",
    "GCC_NO_COMMON_BLOCKS": "YES",
    "GCC_OPTIMIZATION_LEVEL[config=DebugTest]": "0",
    "GCC_OPTIMIZATION_LEVEL[config=Debug]": "0",
    "GCC_PREPROCESSOR_DEFINITIONS[config=DebugTest]": [
      "DEBUG=1",
      "$(inherited)",
    ],
    "GCC_PREPROCESSOR_DEFINITIONS[config=Debug]": [
      "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.0",
    "MTL_ENABLE_DEBUG_INFO[config=DebugTest]": "INCLUDE_SOURCE",
    "MTL_ENABLE_DEBUG_INFO[config=Debug]": "INCLUDE_SOURCE",
    "MTL_ENABLE_DEBUG_INFO[config=Release]": "NO",
    "MTL_FAST_MATH": "YES",
    "ONLY_ACTIVE_ARCH[config=DebugTest]": "YES",
    "ONLY_ACTIVE_ARCH[config=Debug]": "YES",
    "SDKROOT": "macosx",
    "STRING_CATALOG_GENERATE_SYMBOLS": "YES",
    "SWIFT_ACTIVE_COMPILATION_CONDITIONS[config=DebugTest]": "DEBUG $(inherited)",
    "SWIFT_ACTIVE_COMPILATION_CONDITIONS[config=Debug]": "DEBUG $(inherited)",
    "SWIFT_COMPILATION_MODE[config=Release]": "wholemodule",
    "SWIFT_OPTIMIZATION_LEVEL[config=DebugTest]": "-Onone",
    "SWIFT_OPTIMIZATION_LEVEL[config=Debug]": "-Onone",
    "SWIFT_VERSION": "6.0",
  },
  "last-upgrade": "27.0",
  "last-swift-update": "26.5",
}