From 62817d6e9c40e0fe375971ea4161b35b4caef296 Mon Sep 17 00:00:00 2001 From: George Harker Date: Mon, 30 Oct 2023 14:51:24 -0700 Subject: [PATCH] modify build scripts --- bin/build_vimr.sh | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/bin/build_vimr.sh b/bin/build_vimr.sh index 676b1cb5..73d8f500 100755 --- a/bin/build_vimr.sh +++ b/bin/build_vimr.sh @@ -13,7 +13,7 @@ prepare_nvimserver() { # Build NvimServer and copy build_libnvim=true ./NvimServer/NvimServer/bin/build_nvimserver.sh - cp ./Neovim/.build/apple/Products/Release/NvimServer "${resources_folder}" + cp ./NvimServer/.build/arm64-apple-macosx/release/NvimServer "${resources_folder}" # Create and copy runtime folder install_path="$(/usr/bin/mktemp -d -t 'nvim-runtime')" @@ -38,10 +38,17 @@ build_vimr() { echo "### Xcodebuilding" rm -rf "${build_path}" - xcodebuild \ - -configuration Release -derivedDataPath "${build_path}" \ - -workspace VimR.xcworkspace -scheme VimR \ - clean build + if [[ "${clean}" == true ]]; then + xcodebuild \ + -configuration Release -derivedDataPath "${build_path}" \ + -workspace VimR.xcworkspace -scheme VimR \ + clean build + else + xcodebuild \ + -configuration Release -derivedDataPath "${build_path}" \ + -workspace VimR.xcworkspace -scheme VimR \ + build + fi } main () {