-
Notifications
You must be signed in to change notification settings - Fork 0
Add CursorIME app and CI #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3cc5b0c
Add CursorIME app and CI
winebarrel 93cfe48
Write README
winebarrel 4d0ecb6
Type imeObserver as NSObjectProtocol
winebarrel 1fcab7e
Add app icon
winebarrel 508e966
Fix opaque black corners in app icon
winebarrel d8a736c
Use a monochrome menu bar icon
winebarrel 9810198
Drop the icon.kitchen note from the README
winebarrel 6323b4e
Show the badge for any non-Roman input mode
winebarrel 3b0ee14
Name the verified IMEs in the README
winebarrel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| name: Renovate/Dependabot auto-merge | ||
| on: pull_request | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| dependabot: | ||
| runs-on: ubuntu-latest | ||
| if: github.actor == 'renovate[bot]' || github.actor == 'dependabot[bot]' | ||
| steps: | ||
| - name: Enable auto-merge for Renovate/Dependabot PRs | ||
| run: gh pr merge --auto --merge "$PR_URL" | ||
| env: | ||
| PR_URL: ${{github.event.pull_request.html_url}} | ||
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| lint: | ||
| name: Lint | ||
| runs-on: macos-latest | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - name: Install SwiftLint | ||
| run: brew install swiftlint | ||
| - name: Run SwiftLint | ||
| run: swiftlint --strict | ||
|
|
||
| format: | ||
| name: Format | ||
| runs-on: macos-latest | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - name: Install SwiftFormat | ||
| run: brew install swiftformat | ||
| - name: Check formatting | ||
| run: swiftformat --lint CursorIME | ||
|
|
||
| build: | ||
| name: Build and Analyse | ||
| runs-on: macos-latest | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - name: Install SwiftLint | ||
| run: brew install swiftlint | ||
| - name: Build and Analyse | ||
| run: | | ||
| set -o pipefail | ||
| xcodebuild build analyze \ | ||
| -project CursorIME.xcodeproj \ | ||
| -scheme CursorIME \ | ||
| -destination 'generic/platform=macOS' \ | ||
| CODE_SIGN_IDENTITY="" \ | ||
| CODE_SIGNING_REQUIRED=NO \ | ||
| CODE_SIGNING_ALLOWED=NO \ | ||
| | tee build.log | ||
| - name: SwiftLint Analyse | ||
| run: swiftlint analyze --strict --compiler-log-path build.log | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 6.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| disabled_rules: | ||
| - line_length | ||
| - nesting | ||
| # Require trailing commas to match SwiftFormat's trailingCommas rule. | ||
| trailing_comma: | ||
| mandatory_comma: true | ||
| analyzer_rules: | ||
| - unused_declaration | ||
| - unused_import |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,291 @@ | ||
| // !$*UTF8*$! | ||
| { | ||
| archiveVersion = 1; | ||
| classes = { | ||
| }; | ||
| objectVersion = 77; | ||
| objects = { | ||
|
|
||
| /* Begin PBXFileReference section */ | ||
| CE0000000000000000000006 /* CursorIME.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CursorIME.app; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
| /* End PBXFileReference section */ | ||
|
|
||
| /* Begin PBXFileSystemSynchronizedRootGroup section */ | ||
| CE0000000000000000000004 /* CursorIME */ = { | ||
| isa = PBXFileSystemSynchronizedRootGroup; | ||
| path = CursorIME; | ||
| sourceTree = "<group>"; | ||
| }; | ||
| /* End PBXFileSystemSynchronizedRootGroup section */ | ||
|
|
||
| /* Begin PBXFrameworksBuildPhase section */ | ||
| CE0000000000000000000008 /* Frameworks */ = { | ||
| isa = PBXFrameworksBuildPhase; | ||
| buildActionMask = 2147483647; | ||
| files = ( | ||
| ); | ||
| runOnlyForDeploymentPostprocessing = 0; | ||
| }; | ||
| /* End PBXFrameworksBuildPhase section */ | ||
|
|
||
| /* Begin PBXGroup section */ | ||
| CE0000000000000000000002 = { | ||
| isa = PBXGroup; | ||
| children = ( | ||
| CE0000000000000000000004 /* CursorIME */, | ||
| CE0000000000000000000003 /* Products */, | ||
| ); | ||
| sourceTree = "<group>"; | ||
| }; | ||
| CE0000000000000000000003 /* Products */ = { | ||
| isa = PBXGroup; | ||
| children = ( | ||
| CE0000000000000000000006 /* CursorIME.app */, | ||
| ); | ||
| name = Products; | ||
| sourceTree = "<group>"; | ||
| }; | ||
| /* End PBXGroup section */ | ||
|
|
||
| /* Begin PBXNativeTarget section */ | ||
| CE0000000000000000000005 /* CursorIME */ = { | ||
| isa = PBXNativeTarget; | ||
| buildConfigurationList = CE000000000000000000000C /* Build configuration list for PBXNativeTarget "CursorIME" */; | ||
| buildPhases = ( | ||
| CE0000000000000000000007 /* Sources */, | ||
| CE0000000000000000000008 /* Frameworks */, | ||
| CE0000000000000000000009 /* Resources */, | ||
| ); | ||
| buildRules = ( | ||
| ); | ||
| dependencies = ( | ||
| ); | ||
| fileSystemSynchronizedGroups = ( | ||
| CE0000000000000000000004 /* CursorIME */, | ||
| ); | ||
| name = CursorIME; | ||
| packageProductDependencies = ( | ||
| ); | ||
| productName = CursorIME; | ||
| productReference = CE0000000000000000000006 /* CursorIME.app */; | ||
| productType = "com.apple.product-type.application"; | ||
| }; | ||
| /* End PBXNativeTarget section */ | ||
|
|
||
| /* Begin PBXProject section */ | ||
| CE0000000000000000000001 /* Project object */ = { | ||
| isa = PBXProject; | ||
| attributes = { | ||
| BuildIndependentTargetsInParallel = 1; | ||
| LastSwiftUpdateCheck = 2620; | ||
| LastUpgradeCheck = 2620; | ||
| TargetAttributes = { | ||
| CE0000000000000000000005 = { | ||
| CreatedOnToolsVersion = 26.0; | ||
| }; | ||
| }; | ||
| }; | ||
| buildConfigurationList = CE000000000000000000000B /* Build configuration list for PBXProject "CursorIME" */; | ||
| developmentRegion = en; | ||
| hasScannedForEncodings = 0; | ||
| knownRegions = ( | ||
| en, | ||
| Base, | ||
| ); | ||
| mainGroup = CE0000000000000000000002; | ||
| minimizedProjectReferenceProxies = 1; | ||
| preferredProjectObjectVersion = 77; | ||
| productRefGroup = CE0000000000000000000003 /* Products */; | ||
| projectDirPath = ""; | ||
| projectRoot = ""; | ||
| targets = ( | ||
| CE0000000000000000000005 /* CursorIME */, | ||
| ); | ||
| }; | ||
| /* End PBXProject section */ | ||
|
|
||
| /* Begin PBXResourcesBuildPhase section */ | ||
| CE0000000000000000000009 /* Resources */ = { | ||
| isa = PBXResourcesBuildPhase; | ||
| buildActionMask = 2147483647; | ||
| files = ( | ||
| ); | ||
| runOnlyForDeploymentPostprocessing = 0; | ||
| }; | ||
| /* End PBXResourcesBuildPhase section */ | ||
|
|
||
| /* Begin PBXSourcesBuildPhase section */ | ||
| CE0000000000000000000007 /* Sources */ = { | ||
| isa = PBXSourcesBuildPhase; | ||
| buildActionMask = 2147483647; | ||
| files = ( | ||
| ); | ||
| runOnlyForDeploymentPostprocessing = 0; | ||
| }; | ||
| /* End PBXSourcesBuildPhase section */ | ||
|
|
||
| /* Begin XCBuildConfiguration section */ | ||
| CE000000000000000000000D /* Debug */ = { | ||
| isa = XCBuildConfiguration; | ||
| buildSettings = { | ||
| ALWAYS_SEARCH_USER_PATHS = NO; | ||
| CLANG_ANALYZER_NONNULL = YES; | ||
| CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; | ||
| CLANG_ENABLE_MODULES = YES; | ||
| CLANG_ENABLE_OBJC_ARC = YES; | ||
| CLANG_ENABLE_OBJC_WEAK = YES; | ||
| CLANG_WARN_BOOL_CONVERSION = YES; | ||
| CLANG_WARN_CONSTANT_CONVERSION = YES; | ||
| CLANG_WARN_EMPTY_BODY = YES; | ||
| CLANG_WARN_ENUM_CONVERSION = YES; | ||
| CLANG_WARN_INFINITE_RECURSION = YES; | ||
| CLANG_WARN_INT_CONVERSION = YES; | ||
| CLANG_WARN_UNREACHABLE_CODE = YES; | ||
| COPY_PHASE_STRIP = NO; | ||
| DEAD_CODE_STRIPPING = YES; | ||
| DEBUG_INFORMATION_FORMAT = dwarf; | ||
| ENABLE_STRICT_OBJC_MSGSEND = YES; | ||
| ENABLE_TESTABILITY = YES; | ||
| ENABLE_USER_SCRIPT_SANDBOXING = YES; | ||
| GCC_C_LANGUAGE_STANDARD = gnu17; | ||
| GCC_NO_COMMON_BLOCKS = YES; | ||
| GCC_OPTIMIZATION_LEVEL = 0; | ||
| GCC_PREPROCESSOR_DEFINITIONS = ( | ||
| "DEBUG=1", | ||
| "$(inherited)", | ||
| ); | ||
| GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | ||
| GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | ||
| GCC_WARN_UNUSED_FUNCTION = YES; | ||
| GCC_WARN_UNUSED_VARIABLE = YES; | ||
| LOCALIZATION_PREFERS_STRING_CATALOGS = YES; | ||
| MACOSX_DEPLOYMENT_TARGET = 14.6; | ||
| 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; | ||
| }; | ||
| CE000000000000000000000E /* Release */ = { | ||
| isa = XCBuildConfiguration; | ||
| buildSettings = { | ||
| ALWAYS_SEARCH_USER_PATHS = NO; | ||
| CLANG_ANALYZER_NONNULL = YES; | ||
| CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; | ||
| CLANG_ENABLE_MODULES = YES; | ||
| CLANG_ENABLE_OBJC_ARC = YES; | ||
| CLANG_ENABLE_OBJC_WEAK = YES; | ||
| CLANG_WARN_BOOL_CONVERSION = YES; | ||
| CLANG_WARN_CONSTANT_CONVERSION = YES; | ||
| CLANG_WARN_EMPTY_BODY = YES; | ||
| CLANG_WARN_ENUM_CONVERSION = YES; | ||
| CLANG_WARN_INFINITE_RECURSION = YES; | ||
| CLANG_WARN_INT_CONVERSION = YES; | ||
| CLANG_WARN_UNREACHABLE_CODE = YES; | ||
| COPY_PHASE_STRIP = NO; | ||
| DEAD_CODE_STRIPPING = YES; | ||
| 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_ABOUT_RETURN_TYPE = YES_ERROR; | ||
| GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | ||
| GCC_WARN_UNUSED_FUNCTION = YES; | ||
| GCC_WARN_UNUSED_VARIABLE = YES; | ||
| LOCALIZATION_PREFERS_STRING_CATALOGS = YES; | ||
| MACOSX_DEPLOYMENT_TARGET = 14.6; | ||
| MTL_ENABLE_DEBUG_INFO = NO; | ||
| MTL_FAST_MATH = YES; | ||
| SDKROOT = macosx; | ||
| SWIFT_COMPILATION_MODE = wholemodule; | ||
| }; | ||
| name = Release; | ||
| }; | ||
| CE000000000000000000000F /* Debug */ = { | ||
| isa = XCBuildConfiguration; | ||
| buildSettings = { | ||
| ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||
| CODE_SIGN_ENTITLEMENTS = CursorIME/CursorIME.entitlements; | ||
| CODE_SIGN_STYLE = Automatic; | ||
| COMBINE_HIDPI_IMAGES = YES; | ||
| CURRENT_PROJECT_VERSION = 1; | ||
| DEAD_CODE_STRIPPING = YES; | ||
| DEVELOPMENT_TEAM = 97A8B2WE2P; | ||
| ENABLE_APP_SANDBOX = YES; | ||
| ENABLE_HARDENED_RUNTIME = YES; | ||
| ENABLE_PREVIEWS = YES; | ||
| GENERATE_INFOPLIST_FILE = YES; | ||
| INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; | ||
| INFOPLIST_KEY_LSUIElement = YES; | ||
| INFOPLIST_KEY_NSHumanReadableCopyright = ""; | ||
| LD_RUNPATH_SEARCH_PATHS = ( | ||
| "$(inherited)", | ||
| "@executable_path/../Frameworks", | ||
| ); | ||
| MARKETING_VERSION = 1.0.0; | ||
| PRODUCT_BUNDLE_IDENTIFIER = jp.winebarrel.CursorIME; | ||
| PRODUCT_NAME = "$(TARGET_NAME)"; | ||
| SWIFT_EMIT_LOC_STRINGS = YES; | ||
| SWIFT_VERSION = 6.0; | ||
| }; | ||
| name = Debug; | ||
| }; | ||
| CE0000000000000000000010 /* Release */ = { | ||
| isa = XCBuildConfiguration; | ||
| buildSettings = { | ||
| ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||
| CODE_SIGN_ENTITLEMENTS = CursorIME/CursorIME.entitlements; | ||
| CODE_SIGN_STYLE = Automatic; | ||
| COMBINE_HIDPI_IMAGES = YES; | ||
| CURRENT_PROJECT_VERSION = 1; | ||
| DEAD_CODE_STRIPPING = YES; | ||
| DEVELOPMENT_TEAM = 97A8B2WE2P; | ||
| ENABLE_APP_SANDBOX = YES; | ||
| ENABLE_HARDENED_RUNTIME = YES; | ||
| ENABLE_PREVIEWS = YES; | ||
| GENERATE_INFOPLIST_FILE = YES; | ||
| INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; | ||
| INFOPLIST_KEY_LSUIElement = YES; | ||
| INFOPLIST_KEY_NSHumanReadableCopyright = ""; | ||
| LD_RUNPATH_SEARCH_PATHS = ( | ||
| "$(inherited)", | ||
| "@executable_path/../Frameworks", | ||
| ); | ||
| MARKETING_VERSION = 1.0.0; | ||
| PRODUCT_BUNDLE_IDENTIFIER = jp.winebarrel.CursorIME; | ||
| PRODUCT_NAME = "$(TARGET_NAME)"; | ||
| SWIFT_EMIT_LOC_STRINGS = YES; | ||
| SWIFT_VERSION = 6.0; | ||
| }; | ||
| name = Release; | ||
| }; | ||
| /* End XCBuildConfiguration section */ | ||
|
|
||
| /* Begin XCConfigurationList section */ | ||
| CE000000000000000000000B /* Build configuration list for PBXProject "CursorIME" */ = { | ||
| isa = XCConfigurationList; | ||
| buildConfigurations = ( | ||
| CE000000000000000000000D /* Debug */, | ||
| CE000000000000000000000E /* Release */, | ||
| ); | ||
| defaultConfigurationIsVisible = 0; | ||
| defaultConfigurationName = Release; | ||
| }; | ||
| CE000000000000000000000C /* Build configuration list for PBXNativeTarget "CursorIME" */ = { | ||
| isa = XCConfigurationList; | ||
| buildConfigurations = ( | ||
| CE000000000000000000000F /* Debug */, | ||
| CE0000000000000000000010 /* Release */, | ||
| ); | ||
| defaultConfigurationIsVisible = 0; | ||
| defaultConfigurationName = Release; | ||
| }; | ||
| /* End XCConfigurationList section */ | ||
| }; | ||
| rootObject = CE0000000000000000000001 /* Project object */; | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.