This commit is contained in:
Sindre Sorhus 2020-05-07 23:15:25 +08:00
parent affae1cd71
commit a1550ae2c7
6 changed files with 81 additions and 7 deletions

View File

@ -1,4 +1,4 @@
name: Public docs
name: Publish docs
on:
release:
types: [published]

View File

@ -10,3 +10,10 @@ build_tool_arguments:
- '5'
theme: fullwidth
hide_documentation_coverage: true
head: "
<script>
window.addEventListener('DOMContentLoaded', () => {
document.querySelector('.header-link[href^=dash-feed]').remove();
});
</script>
"

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'KeyboardShortcuts'
s.version = '0.0.0'
s.version = '0.1.0'
s.summary = 'Add user-customizable global keyboard shortcuts to your macOS app in minutes'
s.license = 'MIT'
s.homepage = 'https://github.com/sindresorhus/KeyboardShortcuts'

View File

@ -515,7 +515,7 @@
"$(inherited)",
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
);
MARKETING_VERSION = 0.0.0;
MARKETING_VERSION = 0.1.0;
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "$(inherited)";
@ -550,7 +550,7 @@
"$(inherited)",
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
);
MARKETING_VERSION = 0.0.0;
MARKETING_VERSION = 0.1.0;
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "$(inherited)";

View File

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1140"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "KeyboardShortcuts::KeyboardShortcuts"
BuildableName = "KeyboardShortcuts.framework"
BlueprintName = "KeyboardShortcuts"
ReferencedContainer = "container:KeyboardShortcuts.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</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">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "KeyboardShortcuts::KeyboardShortcuts"
BuildableName = "KeyboardShortcuts.framework"
BlueprintName = "KeyboardShortcuts"
ReferencedContainer = "container:KeyboardShortcuts.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@ -1,5 +1,5 @@
<div align="center">
<img width="900" src="logo.png" alt="KeyboardShortcuts">
<img width="900" src="https://github.com/sindresorhus/KeyboardShortcuts/raw/master/logo.png" alt="KeyboardShortcuts">
<br>
</div>
@ -7,7 +7,7 @@ This package lets you add support for user-customizable global keyboard shortcut
This package is still in its early days. I'm happy to accept more configurability and features. PR welcome! What you see here is just what I needed for my own apps.
<img src="screenshot.png" width="532">
<img src="https://github.com/sindresorhus/KeyboardShortcuts/raw/master/screenshot.png" width="532">
## Requirements
@ -18,7 +18,7 @@ macOS 10.11+
#### Swift Package Manager
```swift
.package(url: "https://github.com/sindresorhus/KeyboardShortcuts", from: "0.0.0")
.package(url: "https://github.com/sindresorhus/KeyboardShortcuts", from: "0.1.0")
```
You need to set the build setting “Other Linker Flags” to `-weak_framework Combine` to work around [this Xcode bug](https://github.com/feedback-assistant/reports/issues/44).