Is Releasy any better than Ocra? I am trying to use Release, but don't really get how to do it. I am reading http://rubydoc.info/gems/releasy/0.2.2/frames,
but still don't quite see how (I mean, there's an "example", but it really doesn't tell me what to do).
Well, since I wrote it, I will argue that it is a lot better than Ocra, but that might not be important to you. If you want to create OSX releases on any OS or Windows releases on OSX/Linux, then it just wins :) It also makes it considerably easier to create a proper windows installer by pretty much doing that for you if you want that, compared to managing it using Ocra/Innosetup yourself. Importantly, Ocra alone doesn't do anything that Releasy doesn't do, but Releasy does a hell of a lot more than Ocra.
It is, as you point out, not terribly well documented and it isn't as good at explaining errors as it should be. I've had a bit of a break from coding and Releasy really is the thing I need to clean up and push out to the community as I can, because it is nearly
very good :)
If you have more specific questions, related to your project, then do ask.
Hello! Okay, well:
By Windows Installer, you mean that, unlike Ocra, I can create a game that doesn't have to extract itself all the time to play?
Also, in the example, what is that code? In short: what do I really have to do to build my game with Releasy? Do I have to copy that code somewhere? In my own game project?
Yes, you can create a proper installer (:windows_installer) or zip (:windows_folder) with Releasy that doesn't extract to the tmp folder on each run. This saves a second or two at each startup. You can create the installer with Ocra/Innosetup, without Releasy, but it is a lot more fiddly.
The code is to put into your project's Rakefile which gives a number of extra Rake commands to generate your release. It should be altered based on what sort of releases you want and details of your project, of course!
Maybe my installation is broken (I'm having a hard time installing several gems on my new Win7 64bits system, gem install releasy was not working, so I installed all dependencies manually), but I've tried to use Releasy just for testing and got the following error (trying rake build).
No such file or directory - pkg/window_WIN32.exe
Tasks: TOP => build => build:windows => build:windows:folder => pkg/window_WIN32
(See full trace by running task with --trace)
Not really enough information there, sorry. What Releasy code are you using? The errors may be clearer if you add a call to #verbose in the Releasy block.
Don't worry, Spooner. The problem was on my rakefile indeed (first, wrong "file" arguments, then a file named with invalid character on my resources). I'll still cannot build a win installer, but I'll check it again before asking for help (it seems like my installation is not recognizing innosetup and 7zip, but I'm not sure).
I'm often on the #gosu IRC channel in case you need direct help. Presumably I could have given better error messages if the files were at fault?
I'm not sure it was a problem with the error messages not being clear enough. I think it was my old code behaving oddly and my lack of best practices as I work with Ruby for very specific tasks and maybe tools like Releasy expect the users to make thing on a more "rubish" way (which I think is the way to go). And I still need to take some time to study Ruby and make my coding better.
Better error messages are always good, but after checking it again, I notice it builds even with missing files, so the real problem was a filename with a special character (and it was an image file not used by the app, it was generated by accident by pressing CTRL+V and I didn't notice). The message displayed talked about wrong encoding but I searched for it inside the source files until I noticed that useless image file. I really can't say if the message wasn't clear or I was a little dumb =)
Anyway, now everything works. Releasy is great! Thank you!
Powered by mwForum 2.29.0 © 1999-2013 Markus Wichitill