From f13270275f6fcf188cf94979362f27e75813a8a4 Mon Sep 17 00:00:00 2001 From: Eberhard Beilharz Date: Wed, 4 Jun 2025 19:54:27 +0200 Subject: [PATCH] maint(developer): run platform specific scripts only on that platform --- .../developer/keyman-developer-test-linux-macos.sh | 7 ++++++- .../teamcity/developer/keyman-developer-test-windows.sh | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/resources/teamcity/developer/keyman-developer-test-linux-macos.sh b/resources/teamcity/developer/keyman-developer-test-linux-macos.sh index 49dbd330d0..b81c456eac 100755 --- a/resources/teamcity/developer/keyman-developer-test-linux-macos.sh +++ b/resources/teamcity/developer/keyman-developer-test-linux-macos.sh @@ -39,6 +39,11 @@ function build_developer_action() { builder_echo end "build developer" success "Finished building Keyman Developer" } +if is_windows; then + builder_echo error "This script is intended to be run on Linux or macOS only." + exit 1 +fi + if builder_has_action all; then developer_install_dependencies_on_linux_action @@ -52,5 +57,5 @@ else set_variables_for_nvm set_variables_for_emscripten - builder_run_action build build_developer_action + builder_run_action build build_developer_action fi diff --git a/resources/teamcity/developer/keyman-developer-test-windows.sh b/resources/teamcity/developer/keyman-developer-test-windows.sh index 2ab9c4772f..dd6edecd35 100755 --- a/resources/teamcity/developer/keyman-developer-test-windows.sh +++ b/resources/teamcity/developer/keyman-developer-test-windows.sh @@ -54,6 +54,11 @@ function publish_sentry_action() { builder_echo end "publish sentry" success "Finished publishing debug information files to Sentry" } +if ! is_windows; then + builder_echo error "This script is intended to be run on Windows only." + exit 1 +fi + if builder_has_action all; then build_developer_action publish_sentry_action