Great! Thanks for finding a fix!
Kyle
On Jun 2, 2009, at 7:30 PM, Jonathan Roes wrote:
Oops! Did some searching and couldn't seem to find that. Thanks,
Kyle.
I ran through the code a bunch and did some more testing after you
gave me this hint. It turns out that the files aren't in Local
Settings\Temp after the package is created, but actually once the
application is launched the first time.
Looking at
http://github.com/why/shoes/blob/cea39a8bf9a5b7057b1824a9fab868d1f8609d69/platform/msw/stub.c#L257
it seems that CreateFile() is being called with CREATE_NEW, which will
not overwrite the existing file. I believe if we change this to
CREATE_ALWAYS, the problem will be solved.
I'll spend some time setting up the development environment and
getting things together later and see if it works. I'd submit a
patch, but the most recent XP build has some problems running the
Packager altogether for me.
Jonathan
On Tue, Jun 2, 2009 at 1:19 PM, Kyle King <[email protected]> wrote:
http://article.gmane.org/gmane.comp.lib.shoes/3143
Kyle
On Jun 2, 2009, at 5:53 PM, Jonathan Roes wrote:
I can't seem to get the Shoes Packager to output an updated .exe for
me. I get the feeling that my .rb is cached somewhere.
System info: Windows XP, Shoes 2 (1134) and Shoes 1243.
Steps to reproduce:
1. Create shoes-test.rb with contents: Shoes.app do background
green end
2. Run packager, default options.
3. Run shoes-test.exe. Background color is green.
4. Modify shoes-test.rb. Replace contents with: Shoes.app do
background red end
5. Run packager, default options.
6. Run shoes-test.exe. Background color is still green. EXPECTED:
red background
Copying the shoes-test.rb to shoes-test2.rb produces the expected
output (red background).
Anyone else run into the same results and/or have any suggestions
for
fixes?
Jonathan