Compare commits

..

5 Commits

Author SHA1 Message Date
Ian Chua
3f0ef7e6d9 Revert "feat: draft endpoint for fetching new vendor profiles"
This reverts commit e7936297a1.
2026-07-24 12:49:23 +08:00
Ian Chua
7ad7f8b65b Revert "fix: update API response shape"
This reverts commit 70a6403ab0.
2026-07-24 12:49:18 +08:00
Ian Chua
70a6403ab0 fix: update API response shape 2026-07-22 18:20:45 +08:00
Ian Chua
e7936297a1 feat: draft endpoint for fetching new vendor profiles 2026-07-22 18:20:45 +08:00
Ian Chua
b1a66da542 feat: make updater url app-configurable 2026-07-22 18:20:44 +08:00

View File

@@ -42,6 +42,9 @@ namespace Slic3r {
static const std::string VERSION_CHECK_URL = "https://check-version.orcaslicer.com/latest"; static const std::string VERSION_CHECK_URL = "https://check-version.orcaslicer.com/latest";
static const std::string PROFILE_UPDATE_URL = "https://check-version.orcaslicer.com/profile"; static const std::string PROFILE_UPDATE_URL = "https://check-version.orcaslicer.com/profile";
constexpr const char* CONFIG_ORCA_UPDATER_URL = "orca_updater_url";
static const std::string MODELS_STR = "models"; static const std::string MODELS_STR = "models";
const std::string AppConfig::SECTION_FILAMENTS = "filaments"; const std::string AppConfig::SECTION_FILAMENTS = "filaments";
@@ -1747,7 +1750,10 @@ std::string AppConfig::version_check_url() const
std::string AppConfig::profile_update_url() const std::string AppConfig::profile_update_url() const
{ {
return PROFILE_UPDATE_URL; std::string orca_updater_url = get(CONFIG_ORCA_UPDATER_URL);
if (orca_updater_url.empty())
return PROFILE_UPDATE_URL;
return orca_updater_url;
} }
bool AppConfig::exists() bool AppConfig::exists()