Skip to content

Commit

Permalink
removed scripts from build folder.
Browse files Browse the repository at this point in the history
this fixes a problem with the deployer script.
  • Loading branch information
Samuel committed Nov 12, 2018
1 parent 1e1ca36 commit 12305c0
Show file tree
Hide file tree
Showing 15 changed files with 47 additions and 135,955 deletions.
4 changes: 1 addition & 3 deletions SE TextToSpeechMod.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,7 @@
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<Folder Include="VoiceCode\ComputerVoice\" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
Expand Down
1 change: 1 addition & 0 deletions VoiceCode/HawkingVoice/HawkingVoice.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using SETextToSpeechMod.Processing;
using SETextToSpeechMod.VoiceCode.HawkingVoice;

namespace SETextToSpeechMod.VoiceCode.HawkingVoice
Expand Down
45 changes: 45 additions & 0 deletions deploy.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#INSTRUCTIONS
#1. place in the root directory of the text to speech mod project
#2. open a command shell
#3. change the shell's directory to the project's root directory, using a "cd" command.
#4. enter the name of this script in the shell.
#5. follow the prompts.
#6. profit!

$outputdir = Read-Host -Prompt "Enter an absolute path to the Space Engineers mod directory: "
$inputdir = ".\mirrored workshop build"
$outputfolder = "texttospeechmod"
$projectfile = "SE TextToSpeechMod.csproj"
$scriptdir = "Scripts/folder required here"

Write-Host "deploying text to speech mod..."

if ($outputdir.EndsWith("/"))
{
$outputfolder = $outputdir + $outputfolder
}

else
{
$outputfolder = $outputdir + "/" + $outputfolder
}
Write-Host "using output folder: " $outputfolder

Write-Host "building the project..."
"MSBuild.exe " + $projectfile

if ($LASTEXITCODE -ne 0)
{
Write-Host "build failed! get it compiling in visual studio before continuing."
Exit-PSHostProcess
}
Write-Host "build succeeded."

Write-Host "copying mirrored directory..."
CopyItem $inputdir -Destination $outputdir -Recurse
Write-Host "mirror directory copied."

Write-Host "overwriting with fresh script files..."



This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 12305c0

Please sign in to comment.