maint(developer): run platform specific scripts only on that platform

This commit is contained in:
Eberhard Beilharz 2025-06-04 19:54:27 +02:00
parent 3a8a823c63
commit f13270275f
No known key found for this signature in database
GPG key ID: E9140597606020D3
2 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -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