Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
zsmb13 committed Oct 3, 2023
1 parent 5467f38 commit df613b2
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 38 deletions.
6 changes: 3 additions & 3 deletions KotlinLogos/KotlinLogos.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
buildConfigurationList = EBBEE0C22ABDC9B80008AEF8 /* Build configuration list for PBXNativeTarget "KotlinLogos" */;
buildPhases = (
EBBEE0B42ABDC9B80008AEF8 /* Headers */,
EBA1F4A62ABE0F1C00BF9DD5 /* Comple Kotlin */,
EBA1F4A62ABE0F1C00BF9DD5 /* Compile Kotlin */,
EBBEE0B52ABDC9B80008AEF8 /* Sources */,
EBBEE0B62ABDC9B80008AEF8 /* Frameworks */,
EBBEE0B72ABDC9B80008AEF8 /* Resources */,
Expand Down Expand Up @@ -130,7 +130,7 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
EBA1F4A62ABE0F1C00BF9DD5 /* Comple Kotlin */ = {
EBA1F4A62ABE0F1C00BF9DD5 /* Compile Kotlin */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 12;
Expand All @@ -140,7 +140,7 @@
);
inputPaths = (
);
name = "Comple Kotlin";
name = "Compile Kotlin";
outputFileListPaths = (
);
outputPaths = (
Expand Down
36 changes: 31 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,37 @@

## Installation

### Build the project
### Use an unsigned release build

Release builds are currently not signed, however you can install an unsigned release build by

1. Download the latest release build from [Releases](https://github.com/zsmb13/KotlinLogo-ScreenSaver/releases).
2. Unzip the downloaded file.
3. Open `KotlinLogos.saver`, install it as prompted, this will take you to Screen Saver within System Settings.
4. When selecting the screen saver, you'll be warned that Apple can not check it for malicious software. Choose "OK", and then select another screen saver to stop the popup from repeatedly showing up.

![](/docs/install1.png)

5. Go to Privacy & Security in System Settings, scroll down to Security, and click "Open Anyway" under the message about `KotlinLogos.saver`

![](/docs/install2.png)

6. Go back to Screen Saver, select the screensaver again, and choose "Open" which should now be available.

![](/docs/install3.png)

7. Enjoy!

### Build it yourself

Build the artifact:

```
cd KotlinLogos
xcodebuild -scheme KotlinLogos build
xcodebuild -scheme KotlinLogosRelease build
```

### Install the screensaver:
Then, to install it:

1. Locate the output file:
* Open `KotlinLogos` in XCode, `Product -> Show Build Folder in Finder`, browse to `Products/Debug/KotlinLogos.saver`.
Expand All @@ -21,9 +44,12 @@ xcodebuild -scheme KotlinLogos build
* Opening it to install it in System Settings OR
* Manually copying it to `~/Library/Screen Savers/`

### Configure parameters
### Customize parameters

In System Settings -> Screen Saver, select the screen saver, and then choose _Options..._ to customize logo size, count, and speed.

Go to System Settings -> Screen Saver, select the screen saver, and then _Options_ to customize logo size, count, and speed.
![Use the Options button](/docs/config1.png)
![Customize parameters](/docs/config2.png)

### Backlog

Expand Down
Binary file added docs/config1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/config2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/nativeMain/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.cinterop.useContents
import platform.AppKit.*
import platform.Foundation.NSBundle
import platform.Foundation.NSLog
import platform.Foundation.NSMakeRect
import platform.Foundation.NSRect
import platform.ScreenSaver.ScreenSaverView
Expand Down
29 changes: 0 additions & 29 deletions src/nativeMain/kotlin/Util.kt

This file was deleted.

0 comments on commit df613b2

Please sign in to comment.