Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
NextFire committed May 15, 2022
1 parent d708729 commit ca0f1f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# apple-music-discord-rpc

**[Deno](https://deno.land) + JavaScript for Automation (JXA) Discord Rich Presence Client for Apple Music on macOS (Catalina and later).**
**[Deno](https://deno.land) + JavaScript for Automation (JXA) Discord Rich Presence Client for the macOS Apple Music app (Catalina and later).**

Works with local tracks and Apple Music streaming service.

## Features

- Flex your music tastes to your online buddies.
- Can be started in background at login.
- Minimalist: No status bar icon clutter and presence only shown when actually playing something.
- Shows album artworks and links to Apple Music (when found) ([#5](https://github.com/NextFire/apple-music-discord-rpc/pull/5)).
Expand All @@ -15,7 +14,7 @@ Works with local tracks and Apple Music streaming service.

## Install

### Homebrew (recommended)
### Homebrew

With [Homebrew](https://brew.sh) installed, simply execute the following commands:

Expand All @@ -33,9 +32,9 @@ These commands

The `music-rpc.ts` executable is also added to `PATH`.

### Script
### Scripts

Install [Deno](https://deno.land), clone the repository and execute [`install.sh`](/scripts/install.sh):
Install [Deno](https://deno.land) then clone the repository and execute [`install.sh`](/scripts/install.sh):

```
git clone https://github.com/NextFire/apple-music-discord-rpc.git
Expand Down
11 changes: 5 additions & 6 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#!/bin/bash

cd "$(dirname "$0")"
cd ..

./scripts/uninstall.sh

mkdir ~/Library/LaunchAgents/
cp scripts/moe.yuru.music-rpc.plist ~/Library/LaunchAgents/ && \
plutil -replace WorkingDirectory -string "$(pwd)" ~/Library/LaunchAgents/moe.yuru.music-rpc.plist && \
echo \> Installed launch agent at ~/Library/LaunchAgents/moe.yuru.music-rpc.plist
cp scripts/moe.yuru.music-rpc.plist ~/Library/LaunchAgents/ &&\
plutil -replace WorkingDirectory -string "$(pwd)" ~/Library/LaunchAgents/moe.yuru.music-rpc.plist &&\
echo '> Installed launch agent at ~/Library/LaunchAgents/moe.yuru.music-rpc.plist'

launchctl load ~/Library/LaunchAgents/moe.yuru.music-rpc.plist && \
echo \> Successfully loaded launch agent
launchctl load ~/Library/LaunchAgents/moe.yuru.music-rpc.plist &&\
echo '> Successfully loaded launch agent.'

0 comments on commit ca0f1f8

Please sign in to comment.