Skip to content

Commit d0b2eff

Browse files
AppStore: update progress
1 parent 0367acc commit d0b2eff

File tree

1 file changed

+4
-2
lines changed
  • internal_filesystem/builtin/apps/com.micropythonos.appstore/assets

1 file changed

+4
-2
lines changed

internal_filesystem/builtin/apps/com.micropythonos.appstore/assets/app_detail.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ async def download_and_install(self, app_obj, dest_folder):
256256
else:
257257
print("Downloaded .mpk file, size:", os.stat(temp_zip_path)[6], "bytes")
258258
# Install it:
259-
PackageManager.install_mpk(temp_zip_path, dest_folder) # 60 until 90 percent is the unzip but no progress there...
260-
await self._update_progress(90, wait=False)
259+
PackageManager.install_mpk(temp_zip_path, dest_folder) # 60 until 80 percent is the unzip but no progress there...
260+
await self._update_progress(80, wait=False)
261261
except Exception as e:
262262
print(f"Download failed with exception: {e}")
263263
if DownloadManager.is_network_error(e):
@@ -270,6 +270,8 @@ async def download_and_install(self, app_obj, dest_folder):
270270
return
271271
# Make sure there's no leftover file filling the storage:
272272
self._cleanup_temp_file(temp_zip_path)
273+
await self._update_progress(85, wait=False)
274+
# TODO: report the install if badgehub /report/install is fixed
273275
# Success:
274276
await self._update_progress(100, wait=False)
275277
self._hide_progress_bar()

0 commit comments

Comments
 (0)