mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-09 00:07:47 -06:00
fix: progress on reproducible Windows builds, disable script tracing
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -eux
|
set -eu
|
||||||
|
|
||||||
echo "Building WASM with Emscripten"
|
echo "Building WASM with Emscripten"
|
||||||
cargo build --target=wasm32-unknown-emscripten --release
|
cargo build --target=wasm32-unknown-emscripten --release
|
||||||
|
|||||||
28
scripts/build-windows.sh
Executable file
28
scripts/build-windows.sh
Executable file
@@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
SDL_VERSION="2.28.3"
|
||||||
|
SDL_IMAGE_VERSION="2.6.3"
|
||||||
|
SDL_MIXER_VERSION="2.6.3"
|
||||||
|
SDL_TTF_VERSION="2.20.2"
|
||||||
|
|
||||||
|
SDL="https://github.com/libsdl-org/SDL/releases/download/release-${SDL_VERSION}/SDL2-devel-${SDL_VERSION}-mingw.tar.gz"
|
||||||
|
SLD_IMAGE="https://github.com/libsdl-org/SDL_image/releases/download/release-${SDL_IMAGE_VERSION}/SDL2_image-devel-${SDL_IMAGE_VERSION}-mingw.tar.gz"
|
||||||
|
SDL_MIXER="https://github.com/libsdl-org/SDL_mixer/releases/download/release-${SDL_MIXER_VERSION}/SDL2_mixer-devel-${SDL_MIXER_VERSION}-mingw.tar.gz"
|
||||||
|
SDL_TTF="https://github.com/libsdl-org/SDL_ttf/releases/download/release-${SDL_TTF_VERSION}/SDL_ttf-devel-${SDL_TTF_VERSION}-mingw.tar.gz"
|
||||||
|
|
||||||
|
# Verify that toolchain is installed
|
||||||
|
|
||||||
|
|
||||||
|
# EXTRACT_DIR="~/.rustup/"
|
||||||
|
EXTRACT_DIR="~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/"
|
||||||
|
# if [ ! -d "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/" ]; then
|
||||||
|
# ls $EXTRACT_DIR
|
||||||
|
# echo "Toolchain not installed. Run rustup target add x86_64-pc-windows-gnu. This may not work on environments besides Linux GNU."
|
||||||
|
# exit 1
|
||||||
|
# fi
|
||||||
|
|
||||||
|
echo "Downloading..."
|
||||||
|
curl -L -o ./sdl2.tar.gz $SDL
|
||||||
|
curl -L -o ./sdl2_image.tar.gz $SLD_IMAGE
|
||||||
|
echo "Done."
|
||||||
Reference in New Issue
Block a user