-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version bump, packaging script, timeline fix
- Loading branch information
Mettra
committed
Nov 13, 2019
1 parent
ed11893
commit da51e6f
Showing
3 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
param( | ||
[Parameter( | ||
Mandatory=$true, | ||
Position=0, | ||
HelpMessage='Set "Build and Run" folder')] | ||
[string] $BuildAndRunFolder | ||
) | ||
|
||
$currentDir = Get-Location | ||
$BuildAndRunFolder = Resolve-Path -Path $BuildAndRunFolder | ||
|
||
Add-Type -Assembly System.IO.Compression.FileSystem | ||
$compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal | ||
|
||
if([System.IO.File]::Exists($BuildAndRunFolder + "/NotReaper.exe")) { | ||
Write-Host "Found NotReaper! Packaging build..." | ||
Remove-Item -Force (Join-Path $currentDir "/NotReaper-VERSION.zip") -ErrorAction SilentlyContinue | ||
Remove-Item -Recurse -Force ($BuildAndRunFolder + "/NotReaper_Data/.cache") -ErrorAction SilentlyContinue | ||
Remove-Item -Recurse -Force ($BuildAndRunFolder + "/NotReaper_Data/saves") -ErrorAction SilentlyContinue | ||
Remove-Item -Force ($BuildAndRunFolder + "/NotReaper_Data/StreamingAssets/Ogg2Audica/song.mogg") -ErrorAction SilentlyContinue | ||
Remove-Item -Force ($BuildAndRunFolder + "/NotReaper_Data/StreamingAssets/FFMPEG/converted.ogg") -ErrorAction SilentlyContinue | ||
[System.IO.Compression.ZipFile]::CreateFromDirectory($BuildAndRunFolder, (Join-Path $currentDir "/NotReaper-VERSION.zip"), $compressionLevel, $false) | ||
} | ||
else { | ||
Write-Host "NotReaper could not be found. Please check that the folder you supplied is correct." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters