rm -r build/win/
rm -r build/out/
rm -r build/linux/
rm -r build/macos/

mkdir -p build/
mkdir -p build/out/
cd src
zip -9 -r "../build/out/AKULIVIK.love" .
cd ../build/

echo WINDOWS
mkdir -p win/
cp -r "/home/frc/Bureau/frc/dev/love/love-11.5-win64/" win/
cat licence.txt win/license.txt > win/license.txt
cat "win/love.exe" "out/AKULIVIK.love" > win/ᐊᑯᓕᕕᒃ.exe
rm win/love.exe
zip -9 -r "out/ᐊᑯᓕᕕᒃ-win.zip" win/

echo LINUX
mkdir -p linux/
cp -r /home/frc/Bureau/frc/dev/love/linux/ .
cat "linux/bin/love" "out/AKULIVIK.love" > "linux/bin/AKULIVIK"
chmod +x linux/bin/AKULIVIK
rm linux/bin/love
rm linux/love.svg
cp AKULIVIK.desktop linux/love.desktop
cp favicon.png   linux/AKULIVIK.png
cat licence.txt linux/license.txt > linux/license.txt
cp AppRun linux/AppRun
/home/frc/Bureau/frc/dev/love/appimagetool-x86_64.AppImage linux/ out/AKULIVIK.AppImage

echo MACOS