From a9c1f995b4ac247af1778c46bf70f7154e47e467 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Thu, 10 Mar 2022 10:38:28 +0100 Subject: [PATCH] zip fix --- apps/remix-ide/src/app/files/filesystems/fileSystemUtility.ts | 1 + libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/remix-ide/src/app/files/filesystems/fileSystemUtility.ts b/apps/remix-ide/src/app/files/filesystems/fileSystemUtility.ts index 1b927a01e0..538679c671 100644 --- a/apps/remix-ide/src/app/files/filesystems/fileSystemUtility.ts +++ b/apps/remix-ide/src/app/files/filesystems/fileSystemUtility.ts @@ -43,6 +43,7 @@ export class fileSystemUtility { downloadBackup = async (fs: fileSystem) => { try { const zip = new JSZip() + zip.file("readme.txt", "This is a Remix backup file.\nThis zip should be used by the restore backup tool in Remix.\nThe .workspaces directory contains your workspaces.") await fs.checkWorkspaces() await this.copyFolderToJson('/', null, null, fs.fs, ({ path, content }) => { zip.file(path, content) diff --git a/libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx b/libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx index 32d1e69c3b..b8737b4110 100644 --- a/libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx +++ b/libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx @@ -197,6 +197,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => { try { plugin.call('notification', 'toast', 'preparing files for download, please wait..') const zip = new JSZip() + zip.file("readme.txt", "This is a Remix backup file.\nThis zip should be used by the restore backup tool in Remix.\nThe .workspaces directory contains your workspaces.") const browserProvider = fileManager.getProvider('browser') await browserProvider.copyFolderToJson('/', ({ path, content }) => { zip.file(path, content)