diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5addc5a..11818d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/README.md b/README.md index d38dbab..36745cb 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 diff --git a/music-rpc.ts b/music-rpc.ts index e793a25..18a8c76 100755 --- a/music-rpc.ts +++ b/music-rpc.ts @@ -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/discord_rpc@0.3.2/mod.ts"; import { Client } from "https://deno.land/x/discord_rpc@0.3.2/mod.ts"; import type {} from "https://raw.githubusercontent.com/NextFire/jxa/v0.0.5/run/global.d.ts";