mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
17 lines
594 B
Bash
Executable file
17 lines
594 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
set -e
|
|
|
|
export WORKBOX_DIR=public/3rdparty/workbox
|
|
|
|
rm -rf ${WORKBOX_DIR}
|
|
workbox copyLibraries build/3rdparty/
|
|
|
|
mkdir -p ${WORKBOX_DIR}
|
|
mv build/3rdparty/workbox-*/workbox-sw.js ${WORKBOX_DIR}
|
|
mv build/3rdparty/workbox-*/workbox-core.prod.js ${WORKBOX_DIR}
|
|
mv build/3rdparty/workbox-*/workbox-strategies.prod.js ${WORKBOX_DIR}
|
|
mv build/3rdparty/workbox-*/workbox-routing.prod.js ${WORKBOX_DIR}
|
|
mv build/3rdparty/workbox-*/workbox-navigation-preload.prod.js ${WORKBOX_DIR}
|
|
mv build/3rdparty/workbox-*/workbox-precaching.prod.js ${WORKBOX_DIR}
|
|
rm -rf build/3rdparty/workbox-*
|