fbt: fix for launch_app (#1978)

This commit is contained in:
hedger 2022-11-06 11:39:50 +04:00 committed by GitHub
parent e8913f2e33
commit 0a86ad43ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,14 +98,14 @@ extapps.applications = appenv["EXT_APPS"]
extapps.resources_dist = appenv.FapDist(appenv.Dir("#/assets/resources/apps"), []) extapps.resources_dist = appenv.FapDist(appenv.Dir("#/assets/resources/apps"), [])
if appsrc := appenv.subst("$APPSRC"): if appsrc := appenv.subst("$APPSRC"):
app_manifest, fap_file, app_validator = appenv.GetExtAppFromPath(appsrc) app_artifacts = appenv.GetExtAppFromPath(appsrc)
appenv.PhonyTarget( appenv.PhonyTarget(
"launch_app", "launch_app",
'${PYTHON3} "${APP_RUN_SCRIPT}" "${SOURCE}" --fap_dst_dir "/ext/apps/${FAP_CATEGORY}"', '${PYTHON3} "${APP_RUN_SCRIPT}" "${SOURCE}" --fap_dst_dir "/ext/apps/${FAP_CATEGORY}"',
source=fap_file, source=app_artifacts.compact,
FAP_CATEGORY=app_manifest.fap_category, FAP_CATEGORY=app_artifacts.app.fap_category,
) )
appenv.Alias("launch_app", app_validator) appenv.Alias("launch_app", app_artifacts.validator)
# SDK management # SDK management