Pin release installer and accept clean tagged version output

This commit is contained in:
baketnk committed 2026-10-04 21:44:18 -04:00
1 parent 2c0e4ca4dc
commit b3a9d39482
3 files changed
+5 -3

No files matched your search

+3 -1
View File
@@ -24,7 +24,9 @@ foreach(mode IN ITEMS default help version invalid extra)
message(FATAL_ERROR "${mode}: exit ${result}, expected ${expected_exit}: ${error}")
endif()
if(mode STREQUAL "version")
string(REPLACE "\n" ";" lines "${output}")
# Remove only the final terminator; a clean release has no git line.
string(REGEX REPLACE "\n$" "" version_lines "${output}")
string(REPLACE "\n" ";" lines "${version_lines}")
list(GET lines 0 first_line)
if(NOT first_line STREQUAL "frameyap ${EXPECTED_VERSION}")
message(FATAL_ERROR "Unexpected version: ${output}")