Skip to content

Commit

Permalink
feat: deno v2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
NextFire committed Oct 10, 2024
1 parent bfab69c commit cd18815
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
compile:
runs-on: ubuntu-latest
env:
flags: --allow-env --allow-run --allow-net --allow-read --allow-write --unstable-ffi --allow-ffi --unstable-kv
flags: --allow-env --allow-run --allow-net --allow-read --allow-write --allow-ffi --allow-import --unstable-kv
steps:
- uses: actions/checkout@v4
- name: Get commit SHA
id: version
run: echo commit_sha=$(git log -n1 --format='%h') >> "$GITHUB_OUTPUT"
- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@v2
- name: Compile x86_64
run: |
deno compile ${{ env.flags }} --target x86_64-apple-darwin music-rpc.ts
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# apple-music-discord-rpc

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

Works with local tracks and Apple Music streaming service.

Expand Down Expand Up @@ -51,7 +51,7 @@ brew untap nextfire/tap

#### Install

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

```
git clone https://github.com/NextFire/apple-music-discord-rpc.git
Expand Down
2 changes: 1 addition & 1 deletion music-rpc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env deno run --allow-env --allow-run --allow-net --allow-read --allow-write --unstable-ffi --allow-ffi --unstable-kv
#!/usr/bin/env deno run --allow-env --allow-run --allow-net --allow-read --allow-write --allow-ffi --allow-import --unstable-kv
import type { Activity } from "https://deno.land/x/[email protected]/mod.ts";
import { Client } from "https://deno.land/x/[email protected]/mod.ts";
import type {} from "https://raw.githubusercontent.com/NextFire/jxa/v0.0.5/run/global.d.ts";
Expand Down

0 comments on commit cd18815

Please sign in to comment.