Skip to content

Commit

Permalink
Add bash script to automate release process
Browse files Browse the repository at this point in the history
  • Loading branch information
severedsolo committed Jan 13, 2019
1 parent 794d2ff commit e1f5944
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 15 deletions.
6 changes: 6 additions & 0 deletions Build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
xed /home/martin/Documents/GitHub/OhScrap/GameData/Severedsolo/OhScrap/Changelog.cfg
xed /home/martin/Documents/GitHub/OhScrap/GameData/Severedsolo/OhScrap/OhScrap.version
cp /home/martin/Documents/GitHub/OhScrap/OhScrap/bin/Release/OhScrap.dll /home/martin/Documents/GitHub/OhScrap/GameData/Severedsolo/OhScrap
zip -r OhScrap.zip GameData
notify-send "Oh Scrap build has finised"
8 changes: 6 additions & 2 deletions GameData/Severedsolo/OhScrap/Changelog.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ KERBALCHANGELOG //Required to have this name
{
showChangelog = True //To show the changelog, this must be set to True
modName = OhScrap //Add your mod's name here
VERSION
{
version = 1.4.3
version = 1.5
change = Recompiled against KSP 1.6.0 (1.5.x should continue to work fine)
change = Fixed issue where failure rolls would be spammed in prelaunch
change = Exposed baseFailureChance and expectedLifetime for Space Engines in the MM config for EngineFailureModule
change = Added bash script to automate release build process (only relevant if you are compiling from source, but it's in the Github Repo so mentioned it here)
}

VERSION //Declares a version node
{
version = 1.4.2 //Version number, numbers only with no spaces!
Expand Down
12 changes: 6 additions & 6 deletions GameData/Severedsolo/OhScrap/OhScrap.version
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@
"VERSION" :
{
"MAJOR" : 1,
"MINOR" : 4,
"PATCH" : 2,
"MINOR" : 5,
"PATCH" : 0,
"BUILD" : 0
},
"KSP_VERSION" :
{
"MAJOR" : 1,
"MINOR" : 5,
"PATCH" : 1
"MINOR" : 6,
"PATCH" : 0
},
"KSP_VERSION_MIN" :
{
"MAJOR" : 1,
"MINOR" : 5,
"MINOR" : 6,
"PATCH" : 0
},
"KSP_VERSION_MAX" :
{
"MAJOR" : 1,
"MINOR" : 5,
"MINOR" : 6,
"PATCH" : 99
}
}
8 changes: 1 addition & 7 deletions OhScrap/OhScrap.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,4 @@
<Compile Include="StageRecoveryHandler.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>"D:\OneDrive\Documents\pdb2mdb\pdb2mdb.exe" "$(TargetFileName)"
xcopy /Y "$(TargetPath)" "C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program - ModDev\GameData\Severedsolo\OhScrap\"
xcopy /Y "$(TargetDir)$(TargetName).pdb" "C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program - ModDev\GameData\Severedsolo\OhScrap\"
xcopy /Y "$(TargetDir)$(TargetName).dll.mdb" "C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program - ModDev\GameData\Severedsolo\OhScrap\"</PostBuildEvent>
</PropertyGroup>
</Project>
</Project>
17 changes: 17 additions & 0 deletions OhScrap/OhScrap.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OhScrap", "OhScrap.csproj", "{91503855-3C04-4DB5-8878-4454D9F5877A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{91503855-3C04-4DB5-8878-4454D9F5877A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{91503855-3C04-4DB5-8878-4454D9F5877A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{91503855-3C04-4DB5-8878-4454D9F5877A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{91503855-3C04-4DB5-8878-4454D9F5877A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

0 comments on commit e1f5944

Please sign in to comment.