Wrong date of 'exe' generated in MacOS with PB573

Mac OSX specific forum
manpro
New User
New User
Posts: 2
Joined: Sat Nov 07, 2020 10:38 pm

Wrong date of 'exe' generated in MacOS with PB573

Post by manpro »

Hello.

First at all, excuse me for my bad English :)

I'm rookie with PureBasic (and in this forum :) and it's possible that my doubt was commented in other thread but I can't find it...

My doubt is: I'm using PB 5.73 with MacOS and, when I generate a new .exe, the date and time attributes of generate file are correct, but when I update the file with new compilations, the attribute time of file is updated with a wrong value. I have a .pb updated at 9:53h and the .exe was generated at same time, but .exe it shows 8:48h

I tested this in WinXP and the .exe time is correct, so this can be a problem with MacOS version (I didn't this test in Linux)

Someone more has detected this issue?

Kind regards and thanks a lot in advance!
Best regards,

Manpro
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Wrong date of 'exe' generated in MacOS with PB573

Post by mk-soft »

Wellcome :wink:

I know that ;)

That's because an app under MacOS is a folder and it is not created anew.
If you open the folder (show package contents) and look in the folder /Contents/MacOS, the application is up to date.

Solution: Delete the app first.

No Bug!

Date of Program:

Code: Select all

prg.s = ProgramFilename()
date = GetFileDate(prg, #PB_Date_Modified)
Debug FormatDate("%YYYY.%MM.%DD-%HH:%II:%SS", date)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
manpro
New User
New User
Posts: 2
Joined: Sat Nov 07, 2020 10:38 pm

Re: Wrong date of 'exe' generated in MacOS with PB573

Post by manpro »

Thank you very much for the welcome and the quick response.

Of course you are right, I forgot that an .app file is, as you say, a directory.

Thanks a lot!
Best regards,

Manpro
Post Reply