diff --git a/Makefile b/Makefile index 7d9f850..a1d3a0d 100755 --- a/Makefile +++ b/Makefile @@ -12,9 +12,12 @@ PLIST=$(shell grep -A1 $(1) src/Info.plist | tail -1 | cut -d'>' -f2 | cut -d'<' Memmon.app: SDK_PATH=$(shell xcrun --show-sdk-path --sdk macosx) Memmon.app: src/* @mkdir -p Memmon.app/Contents/MacOS/ - swiftc ${CFLAGS} src/main.swift \ - -target arm64-apple-macos10.10 -target x86_64-apple-macos10.10 \ - -emit-executable -sdk ${SDK_PATH} -o Memmon.app/Contents/MacOS/Memmon + swiftc ${CFLAGS} src/main.swift -target x86_64-apple-macos10.10 \ + -emit-executable -sdk ${SDK_PATH} -o bin_x64 + swiftc ${CFLAGS} src/main.swift -target arm64-apple-macos10.10 \ + -emit-executable -sdk ${SDK_PATH} -o bin_arm64 + lipo -create bin_x64 bin_arm64 -o Memmon.app/Contents/MacOS/Memmon + @rm bin_x64 bin_arm64 @echo 'APPL????' > Memmon.app/Contents/PkgInfo @mkdir -p Memmon.app/Contents/Resources/ @cp src/AppIcon.icns Memmon.app/Contents/Resources/AppIcon.icns diff --git a/README.md b/README.md index 8dad794..51047da 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Memmon remembers what your Mac forgets – A simple deamon that restores your wi ### Status Icon -You can hide the status icon either via `defaults` or the same-titled menu entry. If you do so, the only way to quit the app is by killing the process (with Activity.app or `killall Memmon`). +You can hide the status icon either via `defaults` or the same-titled menu entry. If you do so, the only way to quit the app is by killing the process (with Activity.app or `killall Memmon`). The status icon stays hidden during this execution only. If you restart the OS or app it will reappear (unless you hide the icon with `defaults`). Memmon has exactly one app-setting, the status icon. You can manipulate the display of the icon, or hide the icon completely: diff --git a/src/Info.plist b/src/Info.plist index c298e8b..8c64d9b 100644 --- a/src/Info.plist +++ b/src/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.4 + 1.5 CFBundleVersion 42 LSMinimumSystemVersion diff --git a/src/main.swift b/src/main.swift index af2acb7..28fdea4 100755 --- a/src/main.swift +++ b/src/main.swift @@ -37,7 +37,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { } } self.statusItem.menu = NSMenu(title: "") - self.statusItem.menu!.addItem(withTitle: "Memmon (v1.4)", action: nil, keyEquivalent: "") + self.statusItem.menu!.addItem(withTitle: "Memmon (v1.5)", action: nil, keyEquivalent: "") self.statusItem.menu!.addItem(withTitle: "Hide Status Icon", action: #selector(self.enableInvisbleMode), keyEquivalent: "") self.statusItem.menu!.addItem(withTitle: "Quit", action: #selector(NSApp.terminate), keyEquivalent: "q") }