From 317f06f3cb2bb38b77a617bb56f959482d66d713 Mon Sep 17 00:00:00 2001 From: simon-wh Date: Mon, 21 Oct 2024 16:51:57 +0200 Subject: [PATCH] Only codesign on windows --- ci/before_deploy.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh index e56d198..ee481ea 100755 --- a/ci/before_deploy.sh +++ b/ci/before_deploy.sh @@ -3,7 +3,7 @@ set -ex main() { - local src=$(pwd) + local src=$(pwd) stage= lib_ext= lib_prefix= @@ -37,13 +37,15 @@ main() { test -f Cargo.lock || cargo generate-lockfile - # Currently the --out-dir flag is 'unstable' so unfortunately need to switch to nightly for the build to work properly + # Currently the --out-dir flag is 'unstable' so unfortunately need to switch to nightly for the build to work properly # Don't need to use this currently as the rust-toolchain file specifies the rust version to use # rustup default nightly cargo make build-target-release - # Codesign dlls before packaging up - ./ci/codesign_dll.sh + # Codesign dlls before packaging up. This should only be running on Windows + if [ $RUNNER_OS = "Windows" ]; then + ./ci/codesign_dll.sh + fi mkdir $stage/plugins mkdir $stage/plugins/lib