pages235/scripts/downloadSoundsMap.mjs
2024-01-04 05:38:56 +05:30

10 lines
367 B
JavaScript

import fs from 'fs'
const url = 'https://github.com/zardoy/prismarine-web-client/raw/sounds-generated/sounds.js'
const savePath = 'dist/sounds.js'
fetch(url).then(res => res.text()).then(data => {
fs.writeFileSync(savePath, data, 'utf8')
if (fs.existsSync('.vercel/output/static/')) {
fs.writeFileSync('.vercel/output/static/sounds.js', data, 'utf8')
}
})