forked from maraf/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathonCreateCommand.sh
More file actions
executable file
·49 lines (41 loc) · 1.29 KB
/
onCreateCommand.sh
File metadata and controls
executable file
·49 lines (41 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env bash
set -e
function wasm_common() {
case "$1" in
wasm)
# Put your common commands for wasm here
./build.sh mono+libs -os browser -c Release
;;
wasm-multithreaded)
# Put your common commands for wasm-multithread here
./build.sh mono+libs -os browser -c Release /p:WasmEnableThreads=true
;;
*)
# install dotnet-serve for running wasm samples
./dotnet.sh tool install dotnet-serve --version 1.10.172 --tool-path ./.dotnet-tools-global
;;
esac
}
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
;;
android)
# prebuild the repo for Mono, so it is ready for development
./build.sh mono+libs -os android
# restore libs tests so that the project is ready to be loaded by OmniSharp
./build.sh libs.tests -restore
;;
wasm)
wasm_common $opt
;;
wasm-multithreaded)
wasm_common $opt
;;
esac
# save the commit hash of the currently built assemblies, so developers know which version was built
git rev-parse HEAD > ./artifacts/prebuild.sha