Skip to content

Commit

Permalink
Unix-compatible zip file output
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBenz committed Feb 2, 2019
1 parent b5362e4 commit 5e877bb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ProgressiveColonizationSystem.netkan
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "MIT",
"ksp_version_min": "1.5.1",
"ksp_version_max": "1.6.99",
"version": "0.0.2",
"version": "0.0.3",
"resources": {
"homepage": "https://forum.kerbalspaceprogram.com/index.php?/topic/181852-15x~16x-progressivecolonizationsystem-life-support-colonization-for-more-fun-in-late-game/"
},
Expand Down
2 changes: 1 addition & 1 deletion ProgressiveColonizationSystem.version
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"MAJOR": 0,
"MINOR": 0,
"PATCH": 0,
"BUILD": 2
"BUILD": 3
},
"KSP_VERSION": {
"MAJOR": 1,
Expand Down
1 change: 1 addition & 0 deletions ksplocations_example.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
<TextTransformExe>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\texttransform.exe</TextTransformExe>
<Pdb2MdbExe>c:\pdb2mdb\pdb2mdb.exe</Pdb2MdbExe>
<KspInstallationDir>C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program - Plain\</KspInstallationDir>
<SevenZipExe>C:\Program Files\7-Zip\7z.exe</SevenZipExe>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,8 @@ if $(ConfigurationName) == Debug (

if $(ConfigurationName) == Release (
cd $(TargetDir)
rmdir /s/q zip
del ProgressiveColonizationSystem.zip
mkdir zip
move GameData zip
powershell.exe -version 5.1 -nologo -noprofile -command "&amp; { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::CreateFromDirectory('zip', 'ProgressiveColonizationSystem.zip'); }"
"$(SevenZipExe)" a ProgressiveColonizationSystem.zip GameData
echo $(TargetDir)ProgressiveColonizationSystem.zip is ready for release
)
exit /b 0</PostBuildEvent>
Expand Down

0 comments on commit 5e877bb

Please sign in to comment.