mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-23 19:39:51 +00:00
5c651a0491
- 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
33 lines
924 B
PowerShell
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"
|