mirror of
https://github.com/trafficlunar/jellyfin-spicetify.git
synced 2026-06-13 19:07:06 +00:00
feat: build workflow
some other stuff as well
This commit is contained in:
parent
752c809c4f
commit
51f6f8c78a
4 changed files with 20 additions and 3 deletions
15
.github/workflows/build.yml
vendored
Normal file
15
.github/workflows/build.yml
vendored
Normal 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
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
4
build.ts
4
build.ts
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue