Commit 7e8ef73c authored by Adam Leyshon's avatar Adam Leyshon
Browse files

Set version to 0.19.1.0

Rename and refactored NAnt script.
Changed API endpoints to reflect new versioning scheme.
parent 16d6499d
<?xml version="1.0" encoding="utf-8"?>
<ModMetaData>
<name>GlitterWorld Prime [Unstable]</name>
<name>GlitterWorld Prime [B19]</name>
<author>TwistedSoul / TheCodeCache.NET</author>
<targetVersion>0.19.0</targetVersion>
<url>https://www.thecodecache.net</url>
......
......@@ -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/b19";
#else
private static readonly string BaseUrl = "https://prime.thecodecache.net/v3";
private static readonly string BaseUrl = "https://prime.thecodecache.net/b19";
#endif
#endregion
......
......@@ -35,11 +35,11 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>..\..\..\RimWorldWin64_Data\Managed\Assembly-CSharp.dll</HintPath>
<HintPath>..\..\..\RimWorld2009Win64_Data\Managed\Assembly-CSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Assembly-CSharp-firstpass">
<HintPath>..\..\..\RimWorldWin64_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
<HintPath>..\..\..\RimWorld2009Win64_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RestSharp, Version=105.2.3.0, Culture=neutral, processorArchitecture=MSIL">
......@@ -53,7 +53,7 @@
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine">
<HintPath>..\..\..\RimWorldWin64_Data\Managed\UnityEngine.dll</HintPath>
<HintPath>..\..\..\RimWorld2009Win64_Data\Managed\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
......
<?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 [B19]" />
<!-- 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