-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBuildCito.sh
30 lines (25 loc) · 960 Bytes
/
BuildCito.sh
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
#! /bin/bash
# Generate ProtoBuf files
mono CodeGenerator.exe Packet.proto
# Clean cito output directory
rm -r cito/output
# Create output directories
mkdir cito/output
mkdir cito/output/JsTa
mkdir cito/output/JsTa/js
# Compile JavaScript files
mono CitoAssets.exe data Assets.ci.cs
mono CiTo.exe -D CITO -D JS -D JSTA -l js-ta -o cito/output/JsTa/js/Assets.js Assets.ci.cs
mono CiTo.exe -D CITO -D JS -D JSTA -l js-ta -o cito/output/JsTa/js/Arcanus.js \
$(ls Arcanus.Common/Client/*.ci.cs) \
$(ls Arcanus.Common/Client/Mods/*.ci.cs) \
$(ls Arcanus.Common/Client/MainMenu/*.ci.cs) \
$(ls Arcanus.Common/Client/Misc/*.ci.cs) \
$(ls Arcanus.Common/Client/SimpleServer/*.ci.cs) \
$(ls Arcanus.Common/Client/UI/*.ci.cs) \
$(ls Arcanus.Common/Client/UI/Screens/*.ci.cs) \
$(ls Arcanus.Common/Client/UI/Widgets/*.ci.cs) \
$(ls Arcanus.Common/Common/*.ci.cs) \
Packet.Serializer.ci.cs
# Copy skeleton files
cp -r cito/platform/JsTa/* cito/output/JsTa/