From 771c53c7f1574d12ae39b2aa422cc503de71d4b3 Mon Sep 17 00:00:00 2001 From: David Refoua Date: Sat, 10 Sep 2022 01:47:10 +0430 Subject: [PATCH] Re-target build tools & update script --- appveyor.yml | 2 +- launcher/CmderLauncher.vcxproj | 10 +++++----- scripts/build.ps1 | 11 +++++------ 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 83a7799..968a381 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -15,7 +15,7 @@ branches: #---------------------------------# # Operating system (build VM template) -os: Visual Studio 2017 +os: Visual Studio 2022 #---------------------------------# # build configuration # diff --git a/launcher/CmderLauncher.vcxproj b/launcher/CmderLauncher.vcxproj index 96b1f47..28431d2 100644 --- a/launcher/CmderLauncher.vcxproj +++ b/launcher/CmderLauncher.vcxproj @@ -27,7 +27,7 @@ Application true - v140 + v143 Unicode @@ -35,12 +35,12 @@ false true Unicode - v140 + v143 Application true - v141_xp + v143 Unicode @@ -48,7 +48,7 @@ false true Unicode - v141 + v143 @@ -190,4 +190,4 @@ - + \ No newline at end of file diff --git a/scripts/build.ps1 b/scripts/build.ps1 index 7a78a85..bf2f99a 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -38,24 +38,23 @@ Param( # -whatif switch to not actually make changes # Path to the vendor configuration source file - [string]$sourcesPath = "..\vendor\sources.json", + [string]$sourcesPath = "$PSScriptRoot\..\vendor\sources.json", # Vendor folder location - [string]$saveTo = "..\vendor\", + [string]$saveTo = "$PSScriptRoot\..\vendor\", # Launcher folder location - [string]$launcher = "..\launcher", + [string]$launcher = "$PSScriptRoot\..\launcher", # Config folder location - [string]$config = "..\config", + [string]$config = "$PSScriptRoot\..\config", # New launcher if you have MSBuild tools installed [switch]$Compile ) # Get the scripts and cmder root dirs we are building in. -$ScriptRoot = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition -$cmder_root = $ScriptRoot.replace("\scripts","") +$cmder_root = Resolve-Path "$PSScriptRoot\.." # Dot source util functions into this scope . "$PSScriptRoot\utils.ps1"