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

Updater #603

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Updater #603

wants to merge 12 commits into from

Conversation

fodinabor
Copy link
Contributor

@ivansafrin we should talk about the binary download later - should I maybe use temp files instead of only storing everything in buffers?

  • add menu option to Mac OSX (Ivan your part again :D)
  • add menu option to Visual Studio 2010 build (would cause merge issues with Open file in ide #602 if I'd add it now)

@fodinabor
Copy link
Contributor Author

It now is able to get binary files (like images), but only as long as your memory is able to hold it..

        HTTPFetcherEvent* hEvent = ((HTTPFetcherEvent*)event);
        FILE* fileH = fopen("image.png", "wb");
        size_t written = fwrite(hEvent->data, 1, hEvent->contentSize, fileH);
        fclose(fileH);

would write a png file (I tested it with several png and xcf files with sizes between 256kB and 26MB and a 100MB zip file)

Joachim Meyer added 3 commits March 14, 2015 14:43
…ested data to a file. Using this for the Updater to directly download the new version into the IDE's directory.
…class from SettingsWindow.h. If no savePath is given it will save the fetched file to the same path as it is on the server if saving is turned on.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant