ring/distribute.sh

50 lines
1.2 KiB
Bash
Executable File

rm -r build/win/
rm -r build/out/
rm -r build/linux/
rm -r build/macos/
rm -r build/web/
mkdir -p build/
mkdir -p build/out/
cd src
zip -9 -r "../build/out/AKULIVIK.love" .
cd ../build/
#echo WEB
#npx love.js -m 100000000 -t "ᐊᑯᓕᕕᒃ" -c out/AKULIVIK.love web/
echo ===WINDOWS===
echo
mkdir -p win/
cp -r /home/frc/Bureau/frc/dev/love/love-11.5-win64/. win/
cat licence.txt >> win/license.txt
cat "win/love.exe" "out/AKULIVIK.love" > win/ᐊᑯᓕᕕᒃ.exe
rm win/love.exe
cd win/
zip -9 -r "../out/ᐊᑯᓕᕕᒃ-win.zip" .
cd ..
echo ===LINUX===
echo
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
cp AppRun linux/AppRun
/home/frc/Bureau/frc/dev/love/appimagetool-x86_64.AppImage linux/ out/ᐊᑯᓕᕕᒃ.AppImage
echo ===MACOS===
echo
mkdir -p macos/
cp -r /home/frc/Bureau/frc/dev/love/love.app/. macos/AKULIVIK.app
cp out/AKULIVIK.love macos/AKULIVIK.app/Contents/Resources
cp Info.plist macos/AKULIVIK.app/Contents/Info.plist
cd macos/
zip -9 -r -y "../out/ᐊᑯᓕᕕᒃ-mac.zip" AKULIVIK.app
cd ../