From 84c6d822e25bc45c1dd830eedbf4c078e52d58a8 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Fri, 16 Feb 2024 12:24:28 -0500 Subject: [PATCH] load embedded lib if libs are not being served in dev mode --- .../src/components/BootstrapScene/BootstrapScene.bs | 7 ++++++- playlet-app/src/manifest | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/playlet-app/src/components/BootstrapScene/BootstrapScene.bs b/playlet-app/src/components/BootstrapScene/BootstrapScene.bs index 5e587423..d25c7d3b 100644 --- a/playlet-app/src/components/BootstrapScene/BootstrapScene.bs +++ b/playlet-app/src/components/BootstrapScene/BootstrapScene.bs @@ -23,7 +23,12 @@ end function function GetPlayletLibUrls() as object #if DEBUG debug = { type: "debug", link: Manifest.ReadValue("playlet_lib_debug_url") } - return [debug] + embedded = { type: "embedded", link: Manifest.ReadValue("playlet_lib_embedded_url") } + #if DEBUG_FALLBACK_TO_EMBEDDED + return [debug, embedded] + #else + return [debug] + #end if #else savedUrls = Registry.GetPlayletLibUrlsFromRegistry() if savedUrls <> invalid diff --git a/playlet-app/src/manifest b/playlet-app/src/manifest index 2ace20d2..17f269c1 100644 --- a/playlet-app/src/manifest +++ b/playlet-app/src/manifest @@ -33,4 +33,4 @@ playlet_lib_debug_url=http://DEBUG_HOST_IP_ADDRESS:8086/playlet-lib.zip git_commit_sha=unknown -bs_const=DEBUG=false \ No newline at end of file +bs_const=DEBUG=false;DEBUG_FALLBACK_TO_EMBEDDED=true \ No newline at end of file