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:
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
@@ -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
|
||||
@@ -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 = "")
|
||||
@@ -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 = @{}
|
||||
|
||||
Reference in New Issue
Block a user