RosBE/RosBE-Windows/Powershell/options.ps1
Daniel Reimer 5c651a0491 Preparation for RosBE 2.1.6 for Windows (#1)
- HTTP -> HTTPS in updater script
- Fix Updater script by granting access rights for it. ROSBE-129
- Remove sSVN and it's SVN binaries being useless now.
- Update changelog showing the binary updates.
- Update Copyright header year -> 2018
- 2.1.5 -> 2.1.6
2018-01-28 20:08:38 +01:00

33 lines
924 B
PowerShell

#
# PROJECT: RosBE - ReactOS Build Environment for Windows
# LICENSE: GNU General Public License v2. (see LICENSE.txt)
# FILE: Root/options.ps1
# PURPOSE: Starts options.exe and restarts RosBE afterwards.
# COPYRIGHT: Copyright 2018 Daniel Reimer <reimer.daniel@freenet.de>
#
$host.ui.RawUI.WindowTitle = "Options"
if ("$ENV:ROS_ARCH" -ne "i386") {
$param = "$ENV:ROS_ARCH"
$cfgfile ="$ENV:APPDATA\RosBE\rosbe-options-$ENV:ROS_ARCH.ps1"
} else {
$param = $null
$cfgfile="$ENV:APPDATA\RosBE\rosbe-options-$_ROSBE_VERSION.ps1"
}
# Run options.exe
if (Test-Path "$_ROSBE_BASEDIR\bin\options.exe") {
Push-Location "$_ROSBE_BASEDIR"
&options.exe $param | out-null
Pop-Location
if (Test-Path "$cfgfile") {
& "$cfgfile"
}
} else {
throw {"ERROR: options executable was not found."}
}
$host.ui.RawUI.WindowTitle = "ReactOS Build Environment $_ROSBE_VERSION"