diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..8d04f06 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,15 @@ +name: build +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + - run: bun install + - run: bun run build-local + - uses: actions/upload-artifact@v7 + with: + name: jellyfin-spicetify + path: dist/jellyfin-spicetify.js diff --git a/README.md b/README.md index 1286c33..b850c8d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # jellyfin-spicetify -Spicetify plugin to use Spotify along with your Jellyfin library +WIP: A Spicetify extension to integrate your Jellyfin music library into Spotify diff --git a/build.ts b/build.ts index 38aeca5..ce7278d 100644 --- a/build.ts +++ b/build.ts @@ -36,7 +36,9 @@ const options: BuildOptions = { const js = readFileSync("./dist/jellyfin-spicetify.js", "utf-8"); const css = readFileSync("./dist/jellyfin-spicetify.css", "utf-8"); - const wrapped = `(async function() { + const wrapped = ` + // https://github.com/trafficlunar/jellyfin-spicetify + (async function() { while (!Spicetify.React || !Spicetify.ReactDOM) { await new Promise(resolve => setTimeout(resolve, 10)); } diff --git a/package.json b/package.json index 6987784..f0d37b3 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "bun build.ts", + "build": "bun build.ts & spicetify apply", "build-local": "bun build.ts --local", "watch": "bun build.ts --watch & spicetify watch -le" },