feat: build workflow

some other stuff as well
This commit is contained in:
trafficlunar 2026-03-06 16:37:36 +00:00
parent 752c809c4f
commit 51f6f8c78a
4 changed files with 20 additions and 3 deletions

15
.github/workflows/build.yml vendored Normal file
View file

@ -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

View file

@ -1,3 +1,3 @@
# jellyfin-spicetify # jellyfin-spicetify
Spicetify plugin to use Spotify along with your Jellyfin library WIP: A Spicetify extension to integrate your Jellyfin music library into Spotify

View file

@ -36,7 +36,9 @@ const options: BuildOptions = {
const js = readFileSync("./dist/jellyfin-spicetify.js", "utf-8"); const js = readFileSync("./dist/jellyfin-spicetify.js", "utf-8");
const css = readFileSync("./dist/jellyfin-spicetify.css", "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) { while (!Spicetify.React || !Spicetify.ReactDOM) {
await new Promise(resolve => setTimeout(resolve, 10)); await new Promise(resolve => setTimeout(resolve, 10));
} }

View file

@ -4,7 +4,7 @@
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "bun build.ts", "build": "bun build.ts & spicetify apply",
"build-local": "bun build.ts --local", "build-local": "bun build.ts --local",
"watch": "bun build.ts --watch & spicetify watch -le" "watch": "bun build.ts --watch & spicetify watch -le"
}, },