Skip to content

Issue with zip archive created on Windows but extracted on Linux #3095

Open
@arey-instoresolution

Description

@arey-instoresolution

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Electron Forge version

6.0.3

Electron version

20.1.4

Operating system

Windows 10 (22H2)

Last known working Electron Forge version

No response

Expected behavior

Subdirectories and files in subdirectories should be encoded with forward slashes instead of backward slashes in their path of the zip file entry.

Actual behavior

Hello,

I'm running the following command on my Windows machine :

electron-forge make --platform=linux --arch=x64

Which outputs a zip archive. When uncompressing the zip archive on a linux environment, every item which is supposed to be in a subfolder is instead uncompressed flat in the root of the directory, with the subdirectories in the filename.

image

image

No problem when uncompressing the archive on Windows.

The problem seem to be in the way that the entries are added to the zip archive. When created on Windows, the zip archive is encoded with backward slashes for items in subdirectories. When creating the same zip archive with 7-zip on Windows, items are properly encoded with forward slashes in their path.

Thanks, have a nice day

Antony

Steps to reproduce

  • Run the following command on your Windows machine: electron-forge make --platform=linux --arch=x64
  • Try to open the generated zip archive on your Linux machine: you should see everything flat with no subdirectories

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions