diff --git a/Config/Plain Pasta/Plain-Pasta-Shared.xcconfig b/Config/Plain Pasta/Plain-Pasta-Shared.xcconfig index 4b3da05..4b4819c 100644 --- a/Config/Plain Pasta/Plain-Pasta-Shared.xcconfig +++ b/Config/Plain Pasta/Plain-Pasta-Shared.xcconfig @@ -59,7 +59,7 @@ COMBINE_HIDPI_IMAGES = YES // This setting defines the current version of the project. The value must be a integer // or floating point number, such as `57` or `365.8`. -CURRENT_PROJECT_VERSION = 1.2.1 +CURRENT_PROJECT_VERSION = 1.3.0 @@ -125,7 +125,7 @@ LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/../Frameworks // This setting defines the user-visible version of the project. The value corresponds to // the `CFBundleShortVersionString` key in your app's Info.plist. -MARKETING_VERSION = 1.2.1 +MARKETING_VERSION = 1.3.0 diff --git a/PlainPasta/StatusItemController.swift b/PlainPasta/StatusItemController.swift index a3a90f6..7a42d50 100644 --- a/PlainPasta/StatusItemController.swift +++ b/PlainPasta/StatusItemController.swift @@ -30,11 +30,32 @@ class StatusItemController { ) }() + private lazy var archiveInfoMenuItem: NSMenuItem = { + let menuItem = NSMenuItem( + title: "", + action: #selector(openAboutPage), + target: self + ) + + let paragraphStyle = NSMutableParagraphStyle() + paragraphStyle.alignment = .center + let archiveWarningMessage = NSAttributedString( + string: "⚠️ Plain Pasta is no longer being developed ⚠️\nClick here for more information", + attributes: [ + .font: NSFont.boldSystemFont(ofSize: NSFont.systemFontSize), + .paragraphStyle: paragraphStyle + ] + ) + menuItem.attributedTitle = archiveWarningMessage + return menuItem + }() + /// Builds and returns a correctly ordered menu /// - Returns: A correctly ordered menu private func buildMenu() -> NSMenu { let menu = NSMenu() menu.items = [ + archiveInfoMenuItem, NSMenuItem(title: LocalizedStrings.appVersion, target: self, isEnabled: false), NSMenuItem.separator(), enabledMenuItem, @@ -52,7 +73,11 @@ class StatusItemController { /// Opens Plain Pasta's About page, currently the app's website @objc private func openAboutPage() { - guard let url = URL(string: "https://hisaac.github.io/PlainPasta/") else { return } + guard let url = URL( + string: "https://github.com/hisaac/PlainPasta/blob/main/README.md#%EF%B8%8F-plain-pasta-is-no-longer-under-active-development-%EF%B8%8F" + ) else { + return + } NSWorkspace.shared.open(url) } diff --git a/README.md b/README.md index 39a79a5..5d56224 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ This was a really fun project to work on, but I will no longer be actively devel If you're looking for something like Plain Pasta that _is_ still being developed, I'll direct you to the excellent [Pure Paste](https://sindresorhus.com/pure-paste) by [@sindresorhus](https://github.com/sindresorhus). It does everything I had hoped for Plain Pasta to do someday, and then some. +I was in the process of working on a major update to the app. I've kept that work in a separate branch here for reference purposes: [2.0.0-beta](https://github.com/hisaac/PlainPasta/tree/2.0.0-beta) + 👋 ## Demonstration diff --git a/changelog.md b/changelog.md index 15af2b4..602616e 100644 --- a/changelog.md +++ b/changelog.md @@ -6,6 +6,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a +## [1.3.0] - 2022-03-10 + +Retiring the app. More information [here](https://github.com/hisaac/PlainPasta/blob/main/README.md#%EF%B8%8F-plain-pasta-is-no-longer-under-active-development-%EF%B8%8F). + +### Added + +- Adds a new menu item, informing about the app being retired. Clicking the item opens the README section about the app retiring. + +### Changed + +- The "About" menu item now opens the README section about the app retiring. + ## [1.2.1] - 2020-12-23 ### Fixed