New install scripts, raylib deps + odin.
This commit is contained in:
Executable
+32
@@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# ---------------------------------------------------------------------------------
|
||||||
|
# Odin compiler install recipe
|
||||||
|
# Target: Debian 13 Trixie
|
||||||
|
# Builds from source - recommended method on Linux
|
||||||
|
# ---------------------------------------------------------------------------------
|
||||||
|
set -e
|
||||||
|
|
||||||
|
ODIN_DIR="$HOME/odin"
|
||||||
|
|
||||||
|
echo "Installing Odin build dependencies..."
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y clang llvm lld
|
||||||
|
|
||||||
|
echo "Cloning Odin repository..."
|
||||||
|
git clone https://github.com/odin-lang/Odin "$ODIN_DIR"
|
||||||
|
cd "$ODIN_DIR"
|
||||||
|
|
||||||
|
echo "Building Odin compiler..."
|
||||||
|
./build_odin.sh release
|
||||||
|
|
||||||
|
echo "Adding Odin to PATH..."
|
||||||
|
if ! grep -q 'odin' "$HOME/.bashrc"; then
|
||||||
|
echo "export PATH=\$PATH:$ODIN_DIR" >> "$HOME/.bashrc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "✓ Odin install complete."
|
||||||
|
echo " Compiler: $ODIN_DIR/odin"
|
||||||
|
echo ""
|
||||||
|
echo " Run: source ~/.bashrc (or open a new terminal)"
|
||||||
|
echo " Then verify with: odin version"
|
||||||
Executable
+27
@@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# ---------------------------------------------------------------------------------
|
||||||
|
# Raylib-go dependency install recipe
|
||||||
|
# Target: Debian 13 Trixie
|
||||||
|
# Installs system libs needed for github.com/gen2brain/raylib-go
|
||||||
|
# ---------------------------------------------------------------------------------
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "Installing raylib-go system dependencies..."
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y \
|
||||||
|
build-essential \
|
||||||
|
pkg-config \
|
||||||
|
libasound2-dev \
|
||||||
|
libx11-dev \
|
||||||
|
libxrandr-dev \
|
||||||
|
libxi-dev \
|
||||||
|
libxcursor-dev \
|
||||||
|
libxinerama-dev \
|
||||||
|
libgl1-mesa-dev \
|
||||||
|
libglu1-mesa-dev \
|
||||||
|
libwayland-dev \
|
||||||
|
libxkbcommon-dev
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "✓ Raylib-go dependencies installed."
|
||||||
|
echo ""
|
||||||
Reference in New Issue
Block a user