Giter Site home page Giter Site logo

Comments (3)

julianpaulozzi avatar julianpaulozzi commented on May 10, 2024 1

Yes it's a possibility, but looking at the code now I found it easier to create a custom ZipPackageExtractor.

//...
var entryFullName = entry.FullName;
if (IgnoreZipRootPath)
{
     entryFullName = entryFullName.RemoveRootPath();
}
//...
public static class PackageExtractorExtensions
{
    public static string RemoveRootPath(this string fullPath)
    {
        if (string.IsNullOrEmpty(fullPath))
        {
            return fullPath;
        }

        return string.Join(Path.DirectorySeparatorChar.ToString(), fullPath.Split(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar).Skip(1));
    }
}

I don't know if it would be useful for others.
Thanks for your attention.

from onova.

Tyrrrz avatar Tyrrrz commented on May 10, 2024

Hi.
The fact that it worked in 2.4.2 and prior is actually due to a bug that would cause the updater to ignore the directory structure.
Is it possible for you to create the archive without the root directory?

from onova.

Tyrrrz avatar Tyrrrz commented on May 10, 2024

Yeah that works too :)

from onova.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.