From 2d1c139dfd1e7e95b5c796488a296d0029e3cc6d Mon Sep 17 00:00:00 2001 From: John Haynes Date: Sun, 29 Oct 2023 18:36:55 -0600 Subject: [PATCH] Add windows scripts --- ci/Windows/create-sdk.sh | 3 +-- ci/Windows/publish-to-s3.sh | 5 +++++ ci/Windows/scp-to-repo.sh | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100755 ci/Windows/publish-to-s3.sh create mode 100755 ci/Windows/scp-to-repo.sh diff --git a/ci/Windows/create-sdk.sh b/ci/Windows/create-sdk.sh index 66126a0dc..79e269cde 100755 --- a/ci/Windows/create-sdk.sh +++ b/ci/Windows/create-sdk.sh @@ -1,7 +1,6 @@ #! /bin/bash TARGET_DIR="${TARGET_DIR:-febio4-sdk}" mkdir -p ${TARGET_DIR}/{include,lib,bin} -# Gotta use rsync macos cp doesn't support --parent -find . -name "*.h*" -type f -not -path "./infrastructure/*" -not -path "./${TARGET_DIR}/*" -exec rsync -R -dir {} "./${TARGET_DIR}/include/" \; +find . -name "*.h*" -type f -not -path "./infrastructure/*" -not -path "./${TARGET_DIR}/*" -exec cp --parents -a {} "./${TARGET_DIR}/include/" \; find cmbuild/lib -name "*" -type f -exec cp -a {} "./${TARGET_DIR}/lib/" \; find cmbuild/bin -name "*" -type f -exec cp -a {} "./${TARGET_DIR}/bin/" \; diff --git a/ci/Windows/publish-to-s3.sh b/ci/Windows/publish-to-s3.sh new file mode 100755 index 000000000..31f9df5b8 --- /dev/null +++ b/ci/Windows/publish-to-s3.sh @@ -0,0 +1,5 @@ +#! /bin/bash + +chmod +x artifacts/febio/bin/febio4 +ci/common/linux/publish-to-s3.sh artifacts/febio4 +ci/common/linux/publish-to-s3.sh artifacts/febio4-sdk diff --git a/ci/Windows/scp-to-repo.sh b/ci/Windows/scp-to-repo.sh new file mode 100755 index 000000000..5bdb26386 --- /dev/null +++ b/ci/Windows/scp-to-repo.sh @@ -0,0 +1,2 @@ +#! /bin/bash +scp cmbuild/bin/Release/* repo:~/update2/FEBioStudio2Dev/Windows/stage/bin