2022-09-02 13:12:29 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo "[I] Downloading Twemoji files"
|
|
|
|
wget -O ./twemoji.tar.gz https://github.com/twitter/twemoji/archive/refs/heads/master.tar.gz
|
|
|
|
|
|
|
|
echo "[I] Extracting archive"
|
|
|
|
tar xvf ./twemoji.tar.gz
|
|
|
|
mv ./twemoji-master ./twemoji
|
|
|
|
|
|
|
|
echo "[I] Preparing Pages build"
|
|
|
|
rm -rf ./public
|
2022-09-02 20:03:18 +02:00
|
|
|
mkdir -p ./public ./public/Archives
|
2022-09-02 13:12:29 +02:00
|
|
|
cp ./Build/* ./public/
|
2022-09-02 20:03:18 +02:00
|
|
|
mkdir -p ./Build/i ./public/i
|
|
|
|
cp ./twemoji/assets/svg/* ./Build/i/
|
|
|
|
cp ./twemoji/assets/svg/* ./public/i/
|
|
|
|
mv ./maxcdn ./public/maxcdn
|
2022-09-02 13:12:29 +02:00
|
|
|
|
|
|
|
echo "[I] Making archives"
|
|
|
|
mv ./Build ./twemoji-astonishing
|
2022-09-02 20:03:18 +02:00
|
|
|
cd ./public/Archives
|
|
|
|
7z a -mx9 -mmt$(nproc --all) twemoji-astonishing.zip ../../twemoji-astonishing
|
|
|
|
7z a -mx9 -mmt$(nproc --all) twemoji-astonishing.7z ../../twemoji-astonishing
|
|
|
|
tar cvJf twemoji-astonishing.tar.xz ../../twemoji-astonishing
|
2022-09-02 13:12:29 +02:00
|
|
|
cd ..
|
|
|
|
|
2022-09-02 20:03:18 +02:00
|
|
|
echo "[I] Final steps"
|
|
|
|
tree -I "i|index.html" -H . -o index.html
|
|
|
|
cd ..
|
2022-09-02 13:12:29 +02:00
|
|
|
rm -rf ./Build ./twemoji ./twemoji-astonishing ./twemoji.tar.gz
|