Coder Social home page Coder Social logo

Question: Merging Files about nupdate HOT 10 CLOSED

Kristoffeh avatar Kristoffeh commented on May 26, 2024
Question: Merging Files

from nupdate.

Comments (10)

dbforge avatar dbforge commented on May 26, 2024

Hi, there is no direct operation for that, but you can do this by writing a script in the "Execute code" operation that does this for you. The only problem is that there is currently no way to create custom files on the file system with specified contents. So you would need to put this file in a specific subfolder, e.g. update_data, let nUpdate extract it and then add the code operation that reads the new file from this subdirectory in your application's folder, compares it to the existing id.json file and merges them together.

Delta patching as default will be implemented in the future.

from nupdate.

Kristoffeh avatar Kristoffeh commented on May 26, 2024

Thank you, I will implement nUpdate in my project and give it a try. I appreciate that you're still keeping this project up to date. Great work!

from nupdate.

Kristoffeh avatar Kristoffeh commented on May 26, 2024

On another note: I've implemented nUpdate to my project, and have downloaded the Adminsitration tool to set it up.
I've successfully given it access to the FTP. It was able to create the updates.json but fails to write to it.

I am currently using a InfinityFree to host the file on a website. This may not be the best place to ask, but its worth a try. Its been a headscratcher so far.

The error message:
HTTP(S)-access of configuration file failed.
The configuration file was found on the FTP-server but it couldn't be accessed via HTTP(S). Unexpected character encountered while parsing value: <. Path ", line 0, position 0.

I've tried changing the permissions through Filezilla, but that didn't do much. Also couldn't find much information about this in the readme.md or wiki here on github.

Last time i used nUpdate i was doing all of this through a VPS, this time i don't have access to the Apache configs. Hopefully we can sort this out.

from nupdate.

dbforge avatar dbforge commented on May 26, 2024

I am doing my best, but I don't work on this too much in my free time, unfortunately.

That's pretty annoying. So the message says that the file can be created, but the HTTP-GET request fails. Is the file empty or does it have some content? Reading < seems a bit odd to me. Probably this is because the server returns some config or predefined response in XML-format or anything. Can you access the file regularly in the browser?

from nupdate.

Kristoffeh avatar Kristoffeh commented on May 26, 2024

I am baffled by your quick replies!

The updates.json is completely empty. Yes, I am able to access it through the webpage.
I've decided to test out another webhost, I have a strong feeling it has something to do with the HTTP Authentication. That is not set up for the nUpdate project, as i don't really know (or remember) what to put there.

from nupdate.

dbforge avatar dbforge commented on May 26, 2024

The file is always empty after first creation, so that is normal. Probably the response from the server is just incorrect.

The HTTP Authentication fields provide a way to specify BasicAuth credentials. Unless you have them set up, you can leave those empty.

The error message contains a bit too less information, unfortunately. It should show the complete server response or log it at least to see what the server responds with. If you tried another host, let me know.

from nupdate.

Kristoffeh avatar Kristoffeh commented on May 26, 2024

Hi.

I moved to another webhost, and now i am able to upload packages via nUpdate, I've gotten further this time but i am getting an error when I am in my application and it is attempting to update.

See image, that's what it looks like before updating.
image

Error message:
image

The error translates into:
Path may contain an empty string or just a space.

Where could this be exactly? I tried renaming my application to a name without any spaces. The link path where it is located does not have any spaces either.

EDIT: The application files are located at "C:\Users\Kriss\Desktop\v3"

from nupdate.

dbforge avatar dbforge commented on May 26, 2024

Hi,

can you maybe give me the full stracktrace by right clicking on the message and click "Copy entire message"?

from nupdate.

Kristoffeh avatar Kristoffeh commented on May 26, 2024

Hi.

I ended up making an autoupdater from scratch, that way i could have full control of what's happening.
I'll close this issue as its no longer needed.

from nupdate.

TiToMoskito avatar TiToMoskito commented on May 26, 2024

I ended up with the same problem. This is the full stacktrace:
System.ArgumentException: Der Pfad darf keine leere Zeichenfolge sein oder nur aus Leerzeichen bestehen.
bei System.IO.Directory.CreateDirectory(String path)
bei nUpdate.UpdateInstaller.Updater.CopyDirectoryRecursively(String sourceDirName, String destDirName)

from nupdate.

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.