forked from Klok-e/RimWorld_Mod_AutoPriorities
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·24 lines (18 loc) · 745 Bytes
/
build.sh
File metadata and controls
executable file
·24 lines (18 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
set -e
# set -x
echo selected $BUILD_CONFIGURATION configuration
echo compiling...
msbuild Source/AutoPriorities/AutoPriorities.sln -verbosity:quiet -p:Configuration=$BUILD_CONFIGURATION
# copy assemblies to correct places
mkdir -p "$RIMWORLD_VERSION/Assemblies/"
cp -Rf "Source/AutoPriorities/AutoPriorities/bin/$BUILD_CONFIGURATION/." "$RIMWORLD_VERSION/Assemblies/"
mkdir -p "ConditionalAssemblies/$RIMWORLD_VERSION/"
cp -Rf "Source/AutoPriorities/FluffyWorktabPatch/bin/$BUILD_CONFIGURATION/." "ConditionalAssemblies/$RIMWORLD_VERSION/"
mkdir "./Build"
echo building mod to $(realpath ./Build)
for dir in 1.* Textures About LICENSE ConditionalAssemblies
do
cp -r ./$dir "./Build/$dir"
done
echo build complete.