1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

move scripts into ps sub directory

This commit is contained in:
IntelOrca
2015-12-12 18:55:10 +00:00
parent cb5dab3e57
commit 26908d8a9c
6 changed files with 28 additions and 15 deletions

View File

@@ -13,10 +13,13 @@ param (
[switch]$Rebuild = $false
)
# Setup
$ErrorActionPreference = "Stop"
$scriptsPath = Split-Path $Script:MyInvocation.MyCommand.Path
Import-Module "$scriptsPath\common.psm1" -DisableNameChecking
# Get paths
$scriptPath = $Script:MyInvocation.MyCommand.Path
$scriptsPath = Split-Path $scriptPath
$rootPath = Split-Path $scriptsPath
$rootPath = Get-RootPath
$binPath = Join-Path $rootPath "bin"
$openrct2Path = Join-Path $binPath "openrct2.exe"

View File

@@ -1,6 +1,12 @@
#########################################################
# Common functions for OpenRCT2 PowerShell scripts
#########################################################
$scriptsPath = Split-Path $Script:MyInvocation.MyCommand.Path
function Get-RootPath()
{
return Split-Path (Split-Path $scriptsPath)
}
function Prompt-User($message)
{

View File

@@ -6,22 +6,21 @@ param (
)
Write-Host "Installing OpenRCT2 development environment for Windows" -ForegroundColor Cyan
# Settings
$libsUrl = "https://openrct2.website/files/orctlibs-vs.zip"
# Setup
$ErrorActionPreference = "Stop"
$scriptsPath = Split-Path $Script:MyInvocation.MyCommand.Path
Import-Module "$scriptsPath\common.psm1" -DisableNameChecking
# Dependencies version (increment this when the dependencies is updated)
# Constants
$libsUrl = "https://openrct2.website/files/orctlibs-vs.zip"
$libsVersion = 4
# Get paths
$scriptPath = $Script:MyInvocation.MyCommand.Path
$scriptsPath = Split-Path $scriptPath
$rootPath = Split-Path $scriptsPath
$rootPath = Get-RootPath
$libsPath = Join-Path $rootPath "lib"
$zipPath = Join-Path $libsPath "orctlibs.zip"
$libsVersionPath = Join-Path $libsPath "libversion"
Import-Module "$scriptsPath\common.psm1" -DisableNameChecking
# Check if we need to update the dependencies
$currentLibsVersion = 0
$updateLibs = $true

View File

@@ -9,10 +9,13 @@ param (
[string]$buildNo = ""
)
# Setup
$ErrorActionPreference = "Stop"
$scriptsPath = Split-Path $Script:MyInvocation.MyCommand.Path
Import-Module "$scriptsPath\common.psm1" -DisableNameChecking
# Get paths
$scriptPath = $Script:MyInvocation.MyCommand.Path
$scriptsPath = Split-Path $scriptPath
$rootPath = Split-Path $scriptsPath
$rootPath = Get-RootPath
# Set build attributes
function do-prepareSource($build_server = "", $build_number = "")

View File

@@ -1,4 +1,6 @@
###########################################################
# Setups a PowerShell environment for OpenRCT2 development
###########################################################
function AppExists($app)
{
@@ -12,7 +14,7 @@ function AddPath($path)
}
$rootPath = Split-Path $Script:MyInvocation.MyCommand.Path
$scriptsPath = "$rootPath\scripts"
$scriptsPath = "$rootPath\scripts\ps"
Write-Host "Setting up OpenRCT2 development environment for Windows" -ForegroundColor Cyan
$appExists = @{}