From 1309ec7b270827e5e0c9c63b6acdc6728361252f Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Thu, 18 Mar 2021 18:04:06 -0700 Subject: [PATCH] Change how AppVeyor build is invoked --- appveyor.yml | 3 ++- build.bat | 1 - build.cmd | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) delete mode 100644 build.bat create mode 100644 build.cmd diff --git a/appveyor.yml b/appveyor.yml index daac4161..76fc2a3c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,5 +4,6 @@ environment: myget_api_key: secure: 0xJoYAtR6psXCRvk1qm5czDObkeRjHKPjfe5gIExXVFPwA0VVODYv/hBZYUtz2F3 build_script: - - ps: .\build.ps1 appveyorbuild + - cmd: .\build.cmd appveyorbuild + - sh: ./build.cmd appveyorbuild test: off \ No newline at end of file diff --git a/build.bat b/build.bat deleted file mode 100644 index 4d54f80c..00000000 --- a/build.bat +++ /dev/null @@ -1 +0,0 @@ -powershell -ExecutionPolicy Bypass -NoProfile -File .\build.ps1 %* -configuration Release \ No newline at end of file diff --git a/build.cmd b/build.cmd new file mode 100644 index 00000000..8b8b89dc --- /dev/null +++ b/build.cmd @@ -0,0 +1,7 @@ +:; set -eo pipefail +:; SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd) +:; ${SCRIPT_DIR}/build.sh "$@" +:; exit $? + +@ECHO OFF +powershell -ExecutionPolicy ByPass -NoProfile "%~dp0build.ps1" %*