It is currently Tue Mar 09, 2021 8:35 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Wrong date of 'exe' generated in MacOS with PB573
PostPosted: Sun Dec 06, 2020 10:24 am 
Offline
New User
New User

Joined: Sat Nov 07, 2020 10:38 pm
Posts: 2
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Wrong date of 'exe' generated in MacOS with PB573
PostPosted: Sun Dec 06, 2020 11:52 am 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2890
Location: Germany
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:
prg.s = ProgramFilename()
date = GetFileDate(prg, #PB_Date_Modified)
Debug FormatDate("%YYYY.%MM.%DD-%HH:%II:%SS", date)

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: Wrong date of 'exe' generated in MacOS with PB573
PostPosted: Sun Dec 06, 2020 8:15 pm 
Offline
New User
New User

Joined: Sat Nov 07, 2020 10:38 pm
Posts: 2
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye