Skip to content

Add support for other archive formats like .tar instead of just .zip #210

Description

@greenpixels

I was trying to setup a new project with GodotSteam and GodotEnv, but GodotSteam ships its addon via a .tar.xz archive.

"godotsteam": {
      "url": "https://codeberg.org/godotsteam/godotsteam/releases/download/v4.16.2-gde/godotsteam-4.16.2-gdextension-plugin-4.4.tar.xz",
      "source": "zip",
      "subfolder": "/"
}

This will result in

An unknown error was encountered while attempting to install addons.

System.InvalidOperationException: Failed to run `unzip` in `/home/user/projects/godot/project/.addons/godotsteam` with args `-l /home/user/projects/godot/project/.addons/godotsteam/A53BAC3FF701332D78856357EF1ADE14.zip`. Received exit code 9.

GodotEnv currently only supports .zip files and it could be a good addition to universally support more archive formats.
Maybe using SharpCompress could be a way to go about this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions