Commit ba48e870 authored by Adam Leyshon's avatar Adam Leyshon
Browse files

Set version to 1.0.1.0

Rename and refactored NAnt script.
Changed API endpoints to reflect new versioning scheme.
parent 16d6499d
......@@ -2,11 +2,10 @@
<ModMetaData>
<name>GlitterWorld Prime [Unstable]</name>
<author>TwistedSoul / TheCodeCache.NET</author>
<targetVersion>0.19.0</targetVersion>
<targetVersion>1.0.0</targetVersion>
<url>https://www.thecodecache.net</url>
<description>
Build: @SHAHASH@ \n
&lt;color=orange&gt;&lt;b&gt;Warning: &lt;/b&gt; \n
Anything you want, delivered anywhere in the universe in under 24 earth hours!
</description>
</ModMetaData>
......@@ -25,12 +25,12 @@ namespace Glitterworld_Prime
{
#region Fields
private static readonly float ClientVersion = 3.0f;
private static readonly float ClientVersion = 1.0f;
#if LOCALSERVER
private static readonly string BaseUrl = "http://127.0.0.1:5000/v3";
private static readonly string BaseUrl = "http://127.0.0.1:5000/u1";
#else
private static readonly string BaseUrl = "https://prime.thecodecache.net/v3";
private static readonly string BaseUrl = "https://prime.thecodecache.net/u1";
#endif
#endregion
......
......@@ -40,5 +40,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.1")]
[assembly: AssemblyFileVersion("3.0.0.1")]
\ No newline at end of file
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]
<?xml version="1.0"?>
<!-- Generated by NAntBuilder v2.0 -->
<project default="B18">
<property name="ModName" value="GlitterWorldPrime [B18]" />
<property name="ModPath" value="F:\Games\RimWorld1722Win\Mods\Glitterworld Prime B18\" />
<!-- Name: 'ModOutput' Value: 'C:\Users\aleyshon\Desktop\Mod\GlitterWorldPrime [B18]\' -->
<property name="ModOutput" value="C:\Users\aleyshon\Desktop\Mod\GlitterWorldPrime [B18]\" />
<property name="ModBinary" value="${ModPath}\Assemblies\GlitterWorld Prime.dll" />
<property name="MSBuildPath" value="C:\Program Files (x86)\MSBuild\14.0\Bin\Msbuild.exe" />
<property name="SteamModFolder" value="E:\Games\Steam\steamapps\common\RimWorld\Mods" />
<target name="B18">
<echo message="Building default target " />
<!-- Build Release -->
<exec program="${MSBuildPath}">
<arg value="${ModPath}\Glitterworld Prime.sln" />
<arg value="/t:Clean,Build" />
<arg value="/p:Configuration=Release B18" />
</exec>
<!-- Set Git Output File -->
<property name="git.output.file" value="${path::get-temp-path()}\sha1.txt" />
<!-- Get Git SHA -->
<exec program="git.exe" commandline="rev-parse --short HEAD" workingdir="${ModPath}" output="${git.output.file}" />
<!-- Get SHA from File -->
<loadfile file="${git.output.file}" property="git.output" />
<!-- Cleanup Git Output -->
<property name="ModSHA" value="${string::trim(git.output)}" />
<!-- Copy About Folder -->
<copy todir="${ModOutput}\About" overwrite="True">
<fileset basedir="${ModPath}\About" />
</copy>
<!-- Load About.xml -->
<loadfile file="${ModOutput}\About\About.xml" property="ModAbout">
<filterchain>
<replacetokens>
<token key="SHAHASH" value="${ModSHA}" />
</replacetokens>
</filterchain>
</loadfile>
<!-- Save About.xml -->
<echo message="${ModAbout}" file="${ModOutput}\About\About.xml" />
<!-- Get Version Info -->
<property name="ModBinaryVersion" value="${assemblyname::get-version(assemblyname::get-assembly-name(ModBinary))}" />
<!-- Load Version.xml -->
<loadfile file="${ModOutput}\About\Version.xml" property="ModVersion">
<filterchain>
<replacetokens>
<token key="Version" value="${ModBinaryVersion}" />
</replacetokens>
</filterchain>
</loadfile>
<!-- Save Version.xml -->
<echo message="${ModVersion}" file="${ModOutput}\About\Version.xml" />
<!-- Copy Assemblies -->
<copy todir="${ModOutput}\Assemblies" overwrite="True">
<fileset basedir="${ModPath}\Assemblies">
<include name="*.dll" />
</fileset>
</copy>
<!-- Copy Defs -->
<copy todir="${ModOutput}\Defs" overwrite="True">
<fileset basedir="${ModPath}\Defs" />
</copy>
<!-- Copy Textures -->
<copy todir="${ModOutput}\Textures" overwrite="True">
<fileset basedir="${ModPath}\Textures" />
</copy>
<zip zipfile="${ModOutput}\..\..\${ModName} Build ${ModSHA}.zip">
<fileset prefix="${ModName}" basedir="${ModOutput}">
<include name="**/*" />
</fileset>
</zip>
<delete dir="${SteamModFolder}\${ModName}" />
<!-- Copy Mod to Steam -->
<copy todir="${SteamModFolder}\${ModName}\" overwrite="True">
<fileset basedir="${ModOutput}" />
</copy>
</target>
</project>
<?xml version="1.0"?>
<!-- Generated by NAntBuilder v2.0 -->
<project default="B18">
<property name="ModName" value="GlitterWorldPrime [B18]" />
<property name="ModPath" value="F:\Games\RimWorld1722Win\Mods\Glitterworld Prime B18\" />
<!-- Name: 'ModOutput' Value: 'C:\Users\aleyshon\Desktop\Mod\GlitterWorldPrime [B18] Debug\' -->
<property name="ModOutput" value="C:\Users\aleyshon\Desktop\Mod\GlitterWorldPrime [B18] Debug\" />
<property name="ModBinary" value="${ModOutput}\Assemblies\GlitterWorld Prime.dll" />
<property name="ModName" value="GlitterWorldPrime [U1]" />
<!-- Name: 'CWD' Value: '${directory::get-current-directory()}' -->
<property name="CWD" value="${directory::get-current-directory()}" />
<!-- Name: 'Build Type' Value: '${directory::get-current-directory()}' -->
<property name="Type" value="Release" />
<!-- Name: 'ModOutput' Value: 'C:\Users\aleyshon\Desktop\Mod\${ModName} Debug\' -->
<property name="ModOutput" value="C:\Users\aleyshon\Desktop\Mod\${ModName} ${Type}\" />
<!-- Name: 'ModBinary' Value: '${CWD}\Assemblies\GlitterWorld Prime.dll' -->
<property name="ModBinary" value="${CWD}\Assemblies\GlitterWorld Prime.dll" />
<property name="MSBuildPath" value="C:\Program Files (x86)\MSBuild\14.0\Bin\Msbuild.exe" />
<property name="SteamModFolder" value="E:\Games\Steam\steamapps\common\RimWorld\Mods" />
<target name="B18">
<echo message="Building default target " />
<!-- Build Debug -->
<exec program="${MSBuildPath}">
<arg value="${ModPath}\Glitterworld Prime.sln" />
<arg value="${CWD}\Glitterworld Prime.sln" />
<arg value="/t:Clean,Build" />
<arg value="/p:Configuration=Debug B18" />
<arg value="/p:Configuration=${Type}" />
</exec>
<!-- Set Git Output File -->
<property name="git.output.file" value="${path::get-temp-path()}\sha1.txt" />
<!-- Get Git SHA -->
<exec program="git.exe" commandline="rev-parse --short HEAD" workingdir="${ModPath}" output="${git.output.file}" />
<exec program="git.exe" commandline="rev-parse --short HEAD" workingdir="${CWD}" output="${git.output.file}" />
<!-- Get SHA from File -->
<loadfile file="${git.output.file}" property="git.output" />
<!-- Cleanup Git Output -->
<property name="ModSHA" value="${string::trim(git.output)}" />
<!-- Copy About Folder -->
<copy todir="${ModOutput}\About" overwrite="True">
<fileset basedir="${ModPath}\About" />
<fileset basedir="${CWD}\About" />
</copy>
<!-- Load About.xml -->
<loadfile file="${ModOutput}\About\About.xml" property="ModAbout">
......@@ -52,19 +56,23 @@
<echo message="${ModVersion}" file="${ModOutput}\About\Version.xml" />
<!-- Copy Assemblies -->
<copy todir="${ModOutput}\Assemblies" overwrite="True">
<fileset basedir="${ModPath}\Assemblies">
<fileset basedir="${CWD}\Assemblies">
<include name="*.dll" />
</fileset>
</copy>
<!-- Copy Defs -->
<copy todir="${ModOutput}\Defs" overwrite="True">
<fileset basedir="${ModPath}\Defs" />
<fileset basedir="${CWD}\Defs" />
</copy>
<!-- Copy Languages -->
<copy todir="${ModOutput}\Languages" overwrite="True">
<fileset basedir="${CWD}\Defs" />
</copy>
<!-- Copy Textures -->
<copy todir="${ModOutput}\Textures" overwrite="True">
<fileset basedir="${ModPath}\Textures" />
<fileset basedir="${CWD}\Textures" />
</copy>
<zip zipfile="${ModOutput}\..\..\${ModName} Build ${ModSHA}.zip" if="False">
<zip zipfile="${ModOutput}\..\..\${ModName} Build ${ModSHA}.zip">
<fileset prefix="${ModName}" basedir="${ModOutput}">
<include name="**/*" />
</fileset>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment