mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-08 03:27:04 +09:00

Adds a default configuration that comes with all the dependencies preinstalled, but not prebuilt. This reduces confusion if you don't use the "New with options..." dropdown when creating the Codespace since you'd just get a standard Ubuntu container then. Also install a specific version of dotnet-serve.
27 lines
838 B
Bash
Executable file
27 lines
838 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
opt=$1
|
|
case "$opt" in
|
|
|
|
libraries)
|
|
# prebuild the repo, so it is ready for development
|
|
./build.sh libs+clr -rc Release
|
|
# restore libs tests so that the project is ready to be loaded by OmniSharp
|
|
./build.sh libs.tests -restore
|
|
;;
|
|
|
|
wasm)
|
|
# prebuild for WASM, so it is ready for wasm development
|
|
make -C src/mono/wasm provision-wasm
|
|
export EMSDK_PATH=$PWD/src/mono/wasm/emsdk
|
|
./build.sh mono+libs -os browser -c Release
|
|
|
|
# install dotnet-serve for running wasm samples
|
|
./dotnet.sh tool install dotnet-serve --version 1.10.172 --tool-path ./.dotnet-tools-global
|
|
;;
|
|
esac
|
|
|
|
# save the commit hash of the currently built assemblies, so developers know which version was built
|
|
git rev-parse HEAD > ./artifacts/prebuild.sha
|