holochain / launcher

Desktop launcher to install and use Holochain apps locally (Electron version)
58 stars 2 forks source link

Simple Backup and Restore #166

Closed matthme closed 1 month ago

matthme commented 1 month ago

This PR is adds the backend functionality for a simple backup and restore mechanism:

The idea is that the backup function may for example be called when the launcher is being quit and restoration from a backup could happen as part of the setup flow when starting with a new launcher from scratch.

This approach has amongst others the following limitations/drawbacks:

Backing up to, from and across different OS has been tested (Windows 10, macOS Catalina, Ubuntu 22.04) and seems to work fine.

There is no associated UI yet to actually use it. For testing I used a very rudimentary approach of manually writing to a variable on the window object which you can see in this commit where I removed the code I've been using to test it.

matthme commented 1 month ago

Side note - I think the practice that you started on scaffolding to get PR reviews from a broader circle of people is a good idea so I will experiment with adopting it here as well @c12i .