diff --git a/src/apk.rs b/src/apk.rs index 741d313..b23fe44 100644 --- a/src/apk.rs +++ b/src/apk.rs @@ -1194,6 +1194,10 @@ fn direct_launch_script(source: &str) -> Result { "Unsupported Lepton entry script; cannot safely configure the APK display" ); let hooks = r#" +# Lepton 3 calls this helper from remove_prefix, independently of +# LEPTON_NO_CLEANUP. Preserve installed data for both the package-manager +# container and native Steam launches; temporary prefix removal still runs. +function prepare_baked_data_for_removal() { :; } # Preserve downloaded Android resources in development contexts. Lepton's # single-app launcher deletes media/0 before creating its external-storage link. function framely_prepare_media() { diff --git a/src/apk/native.rs b/src/apk/native.rs index 6e5efeb..e9beab5 100644 --- a/src/apk/native.rs +++ b/src/apk/native.rs @@ -23,10 +23,6 @@ function run_app_commands() { function get_app_hash() { extract_app_hash; } function get_app_last_depot_version() { extract_app_last_depot_version; } function clear_baked_app_data() { println 'Framely: keeping installed application data'; } -# Lepton 3 also calls this helper from remove_prefix, independently of -# LEPTON_NO_CLEANUP. It deletes the persistent /data overlay before removing -# the temporary prefix. Installed APKs must keep that overlay across launches. -function prepare_baked_data_for_removal() { :; } # Separate native APK overlays in older shared contexts. Keep the installed # directory (including extracted libraries/splits), rather than hiding it with # a directory containing only the staged base APK.