+ atomic build.sh

+ implemented editor buttons
This commit is contained in:
2026-03-16 18:36:37 +03:30
parent a47f1f9818
commit 880362cc03
6 changed files with 160 additions and 18 deletions

View File

@@ -13,16 +13,16 @@ DEST_WINDOWS="$GODOT_PROJECT/addons/fastvoxel/bin/windows"
echo "Building for Linux (native)..."
cargo build --release
# Copy the shared library
mkdir -p "$DEST_LINUX"
cp "target/release/lib${LIB_NAME}.so" "$DEST_LINUX/"
echo "Copied to $DEST_LINUX"
TMP="$DEST_LINUX/lib${LIB_NAME}.so.tmp"
cp "target/release/lib${LIB_NAME}.so" "$TMP"
mv "$TMP" "$DEST_LINUX/lib${LIB_NAME}.so"
# Optional: Crosscompile for Windows (if needed)
# Uncomment the following lines if you have the Windows target installed
echo "Building for Windows (cross-compile)..."
cargo build --release --target x86_64-pc-windows-gnu
mkdir -p "$DEST_WINDOWS"
cp "target/x86_64-pc-windows-gnu/release/${LIB_NAME}.dll" "$DEST_WINDOWS/"
echo "Copied to $DEST_WINDOWS"
# echo "Building for Windows (cross-compile)..."
# cargo build --release --target x86_64-pc-windows-gnu
# mkdir -p "$DEST_WINDOWS"
# cp "target/x86_64-pc-windows-gnu/release/${LIB_NAME}.dll" "$DEST_WINDOWS/"
# echo "Copied to $DEST_WINDOWS"
echo "Done."