mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-16 18:59:39 +08:00
Fix setting the environment for Sentry
This commit is contained in:
parent
6f707f3149
commit
70f22d04e4
@ -31,10 +31,11 @@ known_args = vars(parser.parse_known_args()[0])
|
|||||||
if with_sentry_sdk:
|
if with_sentry_sdk:
|
||||||
sentry_env = "unknown" # Start off with a "IDK"
|
sentry_env = "unknown" # Start off with a "IDK"
|
||||||
if hasattr(sys, "frozen"):
|
if hasattr(sys, "frozen"):
|
||||||
sentry_env = "production" # A frozen build is a "real" distribution.
|
sentry_env = "production" # A frozen build has the posibility to be a "real" distribution.
|
||||||
elif ApplicationMetadata.CuraVersion == "master":
|
|
||||||
sentry_env = "development"
|
if ApplicationMetadata.CuraVersion == "master":
|
||||||
elif "beta" in ApplicationMetadata.CuraVersion or "BETA" in ApplicationMetadata.CuraVersion:
|
sentry_env = "development" # Master is always a development version.
|
||||||
|
elif ApplicationMetadata.CuraVersion in ["beta", "BETA"]:
|
||||||
sentry_env = "beta"
|
sentry_env = "beta"
|
||||||
try:
|
try:
|
||||||
if ApplicationMetadata.CuraVersion.split(".")[2] == "99":
|
if ApplicationMetadata.CuraVersion.split(".")[2] == "99":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user