Skip to content

Commit

Permalink
Update readme + codesigning, fix header paths warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jwells89 committed Apr 1, 2023
1 parent b03e2df commit 9691667
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 41 deletions.
39 changes: 8 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,19 @@
# WebViewScreenSaver
[![Build](https://img.shields.io/github/workflow/status/liquidx/webviewscreensaver/CI)](https://github.com/liquidx/webviewscreensaver/actions)
[![GitHub release](https://img.shields.io/github/v/release/liquidx/webviewscreensaver)](https://github.com/liquidx/webviewscreensaver/releases)
[![GitHub release](https://img.shields.io/github/v/release/jwells89/webviewscreensaver)](https://github.com/jwells89/webviewscreensaver/releases)

A macOS screen saver that displays a web page or a series of web pages.

## Installation

* Using [brew](https://brew.sh/).*

``` bash
brew install --cask webviewscreensaver
```

* Directly from the [releases](https://github.com/liquidx/webviewscreensaver/releases) page. Unpack and double click to install.*
This is a fork of the [original by liquidx](https://github.com/liquidx/webviewscreensaver) that makes the following changes:
- Fixes several deprecations (e.g. replacing `NSURLConnection` with `NSURLSession`)
- Sets the webview’s user agent string to that of Safari so more pages render correctly (many sites treat the default user agent as an obsolete browser)
- New thumbnail that’s a bit more eye-catching (no retina unfortunately - a 2x thumbnail is supplied, but a bug in the screen saver prefpane prevents it from rendering)
- Minimum macOS version raised to 12.0 Monterey

* From source (requires [Xcode](https://developer.apple.com/xcode/)):
``` bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/liquidx/webviewscreensaver/master/install-from-source.sh)"
```

***Note**: The package is **adhoc signed** (since v2.2.1, previously unsigned).

When opening it the first time you will get a security prompt about Apple not being able to verify the software. <br />
Hit **ok** (cancel in older macOS) and go to **Security and Privacy**.<br />
In the section explaining that "WebViewScreenSaver.saver" was blocked click **Open Anyway**.<br />
Upon returning to screensaver options you'll get a second prompt that can be confirmed by clicking **Open**.
## Installation

**Alternatively**:
Download the latest [release](https://github.com/jwells89/webviewscreensaver/releases), unpack and double-click to install. Binary is signed so gatekeeper shouldn’t grouch at you.

* if you are using [brew](https://brew.sh/) pass in `--no-quarantine` option to `install` or `reinstall` command:
``` bash
brew install --cask webviewscreensaver --no-quarantine
```

* or if you installed it via direct download run the folllowing command to remove the file from quarantine:
``` bash
xattr -d com.apple.quarantine WebViewScreenSaver.saver
```

## Configuration

Expand Down
8 changes: 4 additions & 4 deletions WebViewScreenSaver/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>WVSSDefaultAddressURL</key>
<string>http://www.google.com/</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
Expand All @@ -19,12 +17,14 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>2.2.1</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>2.2.1</string>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string>WebViewScreenSaverView</string>
<key>WVSSDefaultAddressURL</key>
<string>http://www.google.com/</string>
</dict>
</plist>
22 changes: 16 additions & 6 deletions WebViewScreenSaver/WebViewScreenSaver.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -652,40 +652,50 @@
EF7AD72E08BB986600CE4634 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ENABLE_OBJC_ARC = YES;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 2.2.2;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = Z534HUMB6C;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = WebViewScreenSaver_Prefix.pch;
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Library/Screen Savers";
MACOSX_DEPLOYMENT_TARGET = 12.0;
PRODUCT_BUNDLE_IDENTIFIER = "net.liquidx.${PRODUCT_NAME:identifier}";
MARKETING_VERSION = 2.2.2;
PRODUCT_BUNDLE_IDENTIFIER = wells.dev.WebViewScreenSaver;
PRODUCT_NAME = WebViewScreenSaver;
PROVISIONING_PROFILE_SPECIFIER = "";
WRAPPER_EXTENSION = saver;
};
name = Debug;
};
EF7AD72F08BB986600CE4634 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ENABLE_OBJC_ARC = YES;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 2.2.2;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = Z534HUMB6C;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = WebViewScreenSaver_Prefix.pch;
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Library/Screen Savers";
MACOSX_DEPLOYMENT_TARGET = 12.0;
PRODUCT_BUNDLE_IDENTIFIER = "net.liquidx.${PRODUCT_NAME:identifier}";
MARKETING_VERSION = 2.2.2;
PRODUCT_BUNDLE_IDENTIFIER = wells.dev.WebViewScreenSaver;
PRODUCT_NAME = WebViewScreenSaver;
PROVISIONING_PROFILE_SPECIFIER = "";
WRAPPER_EXTENSION = saver;
};
name = Release;
Expand Down

0 comments on commit 9691667

Please sign in to comment.