Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Commit

Permalink
Update app with information about retiring it
Browse files Browse the repository at this point in the history
  • Loading branch information
hisaac committed Mar 10, 2022
1 parent f7f1450 commit 0ab0c73
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Config/Plain Pasta/Plain-Pasta-Shared.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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



Expand Down Expand Up @@ -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



Expand Down
27 changes: 26 additions & 1 deletion PlainPasta/StatusItemController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
}

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a

<!-- ## [Unreleased] -->

## [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
Expand Down

0 comments on commit 0ab0c73

Please sign in to comment.