mirror of
https://github.com/MeexReay/Youtube2Maker.git
synced 2025-05-06 08:08:02 +03:00
17 lines
473 B
Bash
17 lines
473 B
Bash
#!/bin/bash
|
|
|
|
rm -rf build/iso
|
|
rm -rf build
|
|
mkdir build
|
|
cp -r root build/iso
|
|
cp -r www build/iso/www
|
|
cp -r videos build/iso/www/videos
|
|
rm build/iso/www/videos/video-example.json
|
|
echo "const videos = [" > build/iso/www/videos.js
|
|
for i in build/iso/www/videos/*.json; do
|
|
cat $i >> build/iso/www/videos.js
|
|
echo "," >> build/iso/www/videos.js
|
|
done
|
|
echo "]" >> build/iso/www/videos.js
|
|
rm build/iso/www/videos/*.json
|
|
mkisofs -o build/youtube2.iso -V "Youtube2" -J -r build/iso |