Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle extracting from .zip files #109

Open
ifd3f opened this issue May 6, 2024 · 0 comments
Open

Handle extracting from .zip files #109

ifd3f opened this issue May 6, 2024 · 0 comments
Labels
feature New feature to add to the program itself. Does not include refactors or platform support. ux Things directly related to how the program is used

Comments

@ifd3f
Copy link
Owner

ifd3f commented May 6, 2024

Is your feature request related to a problem? Please describe.

Lots of disk images are distributed via zip files. We should be able to handle those automatically.

This wasn't implemented earlier because zip files are an archive format and I was unsure how I would handle the multi-file case.

Describe the solution you'd like

If a zip file is provided, find the most suitable file to image inside, and ask the user to burn that one.

For example, let's say we have these items in a zip file:

  • something-arm64-whatever.iso (8GiB)
  • LICENSE (2KiB)
  • README (1KiB)

we would obviously want to pick something-arm64-whatever.iso.

Probably the algorithm would go something like this:

  1. Find the first file with extension .iso or .img. If there are multiple files, bail and ask the user to pick a specific file in the zip file, with an autocompletey searchy prompt.
  2. Find the largest file.

In both cases, we would obviously ask the user to confirm that this is indeed the file that they want.

Describe alternatives you've considered

N/A

Additional context

N/A

@ifd3f ifd3f added feature New feature to add to the program itself. Does not include refactors or platform support. ux Things directly related to how the program is used labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature to add to the program itself. Does not include refactors or platform support. ux Things directly related to how the program is used
Projects
None yet
Development

No branches or pull requests

1 participant