diff --git a/src/app/script/app_object.cpp b/src/app/script/app_object.cpp index cd33240f4..e89c7eca2 100644 --- a/src/app/script/app_object.cpp +++ b/src/app/script/app_object.cpp @@ -37,6 +37,7 @@ #include "app/ui/timeline/timeline.h" #include "app/ui_context.h" #include "base/fs.h" +#include "base/replace_string.h" #include "base/version.h" #include "doc/frame_tag.h" #include "doc/layer.h" @@ -489,7 +490,9 @@ int App_get_isUIAvailable(lua_State* L) int App_get_version(lua_State* L) { - push_version(L, base::Version(VERSION)); + std::string ver = VERSION; + base::replace_string(ver, "-x64", ""); // Remove "-x64" suffix + push_version(L, base::Version(ver)); return 1; }