-
Notifications
You must be signed in to change notification settings - Fork 286
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 #486 from dartsim/windows_build_issues
Fix build issues on Windows
- Loading branch information
Showing
18 changed files
with
235 additions
and
72 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
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,35 @@ | ||
function ExecuteCommand($command, $command_args) | ||
{ | ||
Write-Host $command $command_args | ||
Start-Process -FilePath $command -ArgumentList $command_args -Wait -Passthru | ||
} | ||
|
||
function InstallPrerequisites($work_dir, $install_dir) | ||
{ | ||
$old_dir = $pwd | ||
cd $work_dir | ||
|
||
$msi = "dart-prerequisites.msi" | ||
$uri = "https://github.com/dartsim/dart-prerequisites-windows/raw/bfb42e9e8271bc99f8b070715bd407cb5988c322/DART%205.0-prerequisites-msvc12-md-32bit.msi" | ||
Invoke-WebRequest $uri -OutFile $msi | ||
|
||
$install_command = "msiexec.exe" | ||
$install_args = "/qn /log log.txt /i $msi TARGETDIR=$install_dir" | ||
ExecuteCommand $install_command $install_args | ||
|
||
cd $old_dir | ||
} | ||
|
||
function main() | ||
{ | ||
try | ||
{ | ||
InstallPrerequisites "C:/projects" "C:/Golems" | ||
} | ||
catch | ||
{ | ||
throw | ||
} | ||
} | ||
|
||
main |
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
Oops, something went wrong.