Skip to content

Commit d6394d2

Browse files
author
Kendrick
committed
#4 Refactoring install scripts. Updating install to pick up new scrips and mapping software. Modifying .gitignore to ignore the bin folder.
1 parent 1566808 commit d6394d2

9 files changed

+44
-17
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@
2121
/core/pass.txt
2222
# ignore mapping system
2323
/mapper/
24-
24+
# ignore binary files
25+
/bin/

install/INSTALL

Whitespace-only changes.

INSTALL.txt install/INSTALL.txt

File renamed without changes.

MCStation.bat install/MCStation.bat

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ echo Error! You appear to not have the MCClient component installed. Please re-r
3434
GOTO END
3535

3636

37-
:END
37+
:END
38+
pause

install/MCStation.xml

+37-15
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,60 @@
1616
<Directory Id="INSTALLDIR" Name="MCStation">
1717
<Directory Id="core" Name="core">
1818
<Component Id="ServerCode" Guid="45755d70-9603-4490-8329-C03D166C9413">
19-
<File Id="mc_server" Name="mc_server.py" DiskId='1' Source="mc_server.py" KeyPath="yes"/>
20-
<File Id="mailer" Name="mailer.py" DiskId='1' Source="mailer.py" />
21-
<File Id="mapper" Name="mapper.py" DiskId='1' Source="mapper.py" />
19+
<File Id="mc_server" Name="mc_server.py" DiskId='1' Source="../core/mc_server.py" KeyPath="yes"/>
20+
<File Id="mailer" Name="mailer.py" DiskId='1' Source="../core/mailer.py" />
21+
<File Id="mapper" Name="mapper.py" DiskId='1' Source="../core/mapper.py" />
2222
</Component>
23-
<Component Id="Common" Guid="E77dE431-44CD-4190-b9BE-76A68dCAA562">
24-
<File Id="properties" Name="properties.py" DiskId='1' Source="properties.py" KeyPath="yes"/>
25-
<File Id="security" Name="security.py" DiskId='1' Source="mc_security.py" />
23+
<Component Id="CommonCode" Guid="E77dE431-44CD-4190-b9BE-76A68dCAA562">
24+
<File Id="mc_properties" Name="properties.py" DiskId='1' Source="../core/properties.py" KeyPath="yes"/>
25+
<File Id="mc_security" Name="security.py" DiskId='1' Source="../core/mc_security.py" />
2626
<File Id="MCStation" Name="MCStation.bat" DiskId='1' Source="MCStation.bat" />
27-
<File Id="INSTALL" Name="INSTALL.txt" DiskId='1' Source="INSTALL.txt" />
2827
</Component>
2928
<Component Id="ClientCode" Guid="55075150-9832-11E0-8552-38F44724019B">
30-
<File Id="client" Name="mc_client.py" DiskId='1' Source="mc_client.py" KeyPath="yes"/>
29+
<File Id="mc_client" Name="mc_client.py" DiskId='1' Source="../core/mc_client.py" KeyPath="yes"/>
3130
</Component>
3231
</Directory>
33-
<Component Id="Common" Guid="E77dE431-44CD-4190-b9BE-76A68dCAA562">
34-
<File Id="MCStation" Name="MCStation.bat" DiskId='1' Source="MCStation.bat" />
32+
<Directory Id="mapper" Name="mapper">
33+
<Component Id="mapper" Guid="7AC5C3A2-A33D-11E0-9AC4-6D4C4824019B">
34+
<File Id="mcmap" Name="mcmap.exe" DiskId='1' Source="../mapper/mcmap.exe" KeyPath="yes"/>
35+
<File Id="mcmapGUI" Name="mcmapGUI.exe" DiskId='1' Source="../mapper/mcmapGUI.exe"/>
36+
<Component Id="CommonOther" Guid="8D515460-A33C-11E0-ACC9-754B4824019B">
3537
<File Id="INSTALL" Name="INSTALL.txt" DiskId='1' Source="INSTALL.txt" />
38+
<File Id="adduser" Name="add_user.bat" DiskId='1' Source="add_user.bat" />
39+
</Component>
40+
<Component Id="ServerScripts" Guid="97C247A6-A33C-11E0-93EE-764B4824019B">
41+
<File Id="server" Name="server.bat" DiskId='1' Source="server.bat" KeyPath="yes"/>
42+
</Component>
43+
<Component Id="ClientScripts" Guid="9BDE9EE8-A33C-11E0-9F88-774B4824019B">
44+
<File Id="client" Name="client.bat" DiskId='1' Source="client.bat" KeyPath="yes"/>
3645
</Component>
3746
</Directory>
3847
</Directory>
3948
</Directory>
4049
</Directory>
41-
50+
51+
<ComponentGroup Id='Server'>
52+
<ComponentRef Id='ServerCode' />
53+
<ComponentRef Id='ServerScripts' />
54+
<ComponentRef Id='mapper'/>
55+
</ComponentGroup>
56+
<ComponentGroup Id='Client'>
57+
<ComponentRef Id='ClientCode' />
58+
<ComponentRef Id='ClientScripts' />
59+
</ComponentGroup>
60+
<ComponentGroup Id='Common'>
61+
<ComponentRef Id='CommonCode' />
62+
<ComponentRef Id='CommonOther' />
63+
</ComponentGroup>
4264
<Feature Id='Complete' Title='MCStation' Description="Complete Install of both Server and Client" Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR'>
4365
<Feature Id='Server' Title='Server' Description='Installs only the server side components' Level='1'>
44-
<ComponentRef Id='ServerCode' />
45-
<ComponentRef Id='Common' />
66+
<ComponentGroupRef Id='Server' />
67+
<ComponentGroupRef Id='Common' />
4668
</Feature>
4769

4870
<Feature Id='Client' Title='Client' Description='Installs the client side components' Level='1000'>
49-
<ComponentRef Id='ClientCode'/>
50-
<ComponentRef Id='Common' />
71+
<ComponentGroupRef Id='Client'/>
72+
<ComponentGroupRef Id='Common' />
5173
</Feature>
5274
</Feature>
5375
<WixVariable Id="WixUILicenseRtf" Value="license.rtf" />

install/add_user.bat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./core/MCStation.bat adduser

install/client.bat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./core/MCStation.bat client

license.rtf install/license.rtf

File renamed without changes.

install/server.bat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./core/MCStation.bat server

0 commit comments

Comments
 (0)