-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from VirtualPhotonics/feature/148-updates-to-…
…powershell-scripts-for-building-zip-files Feature 148 Updates to PowerShell Scripts
- Loading branch information
Showing
6 changed files
with
71 additions
and
30 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 |
---|---|---|
@@ -1,11 +1,18 @@ | ||
$mccl_version = "7.3.0" | ||
$matlab_version = "10.0.0" | ||
$vts_version = "10.0.0" | ||
|
||
Write-Host "Create clean publish and release folders" -ForegroundColor Green | ||
Remove-Item "$PWD\release" -Recurse -ErrorAction Ignore | ||
Remove-Item $PWD\publish -Recurse -ErrorAction Ignore | ||
|
||
.\BuildTestCore.ps1 | ||
|
||
Invoke-Expression ".\BuildTestReleaseScripting.ps1 $vts_version" | ||
Invoke-Expression ".\BuildTestReleaseMCCL.ps1 $mccl_version" | ||
# only run if matlab installed | ||
if (Get-Command "matlab" -ErrorAction SilentlyContinue) | ||
{ | ||
Invoke-Expression ".\BuildTestReleaseMATLAB.ps1 $matlab_version" | ||
Invoke-Expression ".\BuildTestReleaseMATLAB.ps1 $vts_version" | ||
} | ||
|
||
Read-Host -Prompt "Press Enter to exit" |
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
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,32 @@ | ||
$version = $args[0]; | ||
if (!$args) { | ||
$version="x.xx.x" | ||
echo "version set to x.xx.x" | ||
.\BuildTestCore.ps1 | ||
} | ||
|
||
$vtslevel = $PWD | ||
|
||
Write-Host "Create Scripting Release version = $version" -ForegroundColor Green | ||
# Create release folder if it doesn't exist | ||
$releasedir = ".\release" | ||
if (-not (Test-Path -LiteralPath $releasedir)) { | ||
New-Item -Path $PWD -Name $releasedir -ItemType "directory" | ||
} | ||
|
||
# Create win-x64 zip | ||
$archive="$PWD\release\VTS_Scripting_v" + $version + "_Win_x64.zip" | ||
$source="$vtslevel\publish\win-x64\*" | ||
Compress-Archive -Path $source -DestinationPath $archive -Force | ||
|
||
# Create linux-x64 zip | ||
$archive="$PWD\release\VTS_Scripting_v" + $version + "_Linux_x64.zip" | ||
$source="$vtslevel\publish\linux-x64\*" | ||
Compress-Archive -Path $source -DestinationPath $archive -Force | ||
|
||
# Create osx-x64 zip | ||
$archive="$PWD\release\VTS_Scripting_v" + $version + "_Mac_x64.zip" | ||
$source="$vtslevel\publish\osx-x64\*" | ||
Compress-Archive -Path $source -DestinationPath $archive -Force | ||
|
||
Read-Host -Prompt "Press Enter to exit Scripting release process" |
This file was deleted.
Oops, something went wrong.