Skip to content

Commit

Permalink
Add Linux local build script
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie480 committed Dec 10, 2024
1 parent a0a802a commit 4470f40
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@
- Download a built Olympus version ([Windows](https://maddie480.ovh/celeste/download-olympus?branch=stable&platform=windows), [Linux](https://maddie480.ovh/celeste/download-olympus?branch=stable&platform=linux)) and extract everything from it, except the `sharp` folder, into `love`.
- If on Windows, install [LÖVE](https://www.love2d.org/): take the zipped version and extract it in the `love` folder. **Be sure to install the 32-bit version!**
- Run Olympus by running `debug.bat` on Windows, or by going to the `src` folder and running `../love/love --console .` on Linux.

**Note:** for Linux, a `build-and-run.sh` script is present on this repository to set up the `love` directory, build Olympus.Sharp, and run Olympus.
29 changes: 29 additions & 0 deletions build-and-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

set -xeo pipefail

# Make sure we are in the right directory
cd "$(dirname "$0")"

# Reset the love directory
rm -rfv love
mkdir love

# Download and install latest Olympus as a base
cd love
wget -O linux.main.zip 'https://maddie480.ovh/celeste/download-olympus?branch=main&platform=linux'
unzip linux.main.zip
mv -v linux.main/dist.zip dist.zip
unzip dist.zip
rm -rfv linux.main dist.zip linux.main.zip olympus.love
cd ..

# Build Olympus.Sharp and copy it to love
cd sharp
dotnet build --configuration Release Olympus.Sharp.sln
cp -vf bin/Release/net452/* ../love/sharp
cd ..

# Run our fresh build!
cd love
./love --console ../src --debug

0 comments on commit 4470f40

Please sign in to comment.