Page 2 of 3

Re: Windows -> MacOS : file format ?

Posted: Thu Apr 09, 2020 3:31 am
by FourthWorld
I can't follow this discussion. If Richmond hasn't suggested LC did anything wrong I misread his post. So let's say I'm to blame for blaming Richmond for blaming LC for the differences between OSes.

I wonder if we might let the OP have his thread back? I can't remember the last time a thread here stayed on topic...

Re: Windows -> MacOS : file format ?

Posted: Thu Apr 09, 2020 3:40 am
by bogs
Well, I sure ain't blaming you, so I sure hope I don't hear about me having did any such a thing. I'm pretty sure no one really is blaming anyone, I am sorry if you feel like someone is.

Re: Windows -> MacOS : file format ?

Posted: Thu Apr 09, 2020 4:36 am
by FourthWorld
No worries. I'll happily go along with whatever might get this thread back on the OP's topic.

Re: Windows -> MacOS : file format ?

Posted: Thu Apr 09, 2020 7:10 am
by richmond62
Maybe Richmond can propose some alternate wording is feels is important to the team for their consideration.
Err . . . How about:

Code on any platform: compile on target. 8)

Or . . .

Never believe completely what is written on the box.
:wink:

Re: Windows -> MacOS : file format ?

Posted: Thu Apr 09, 2020 8:35 am
by bangkok
richmond62 wrote: Thu Apr 09, 2020 7:10 am Err . . . How about:

Code on any platform: compile on target. 8)

Or . . .

Never believe completely what is written on the box.
:wink:
Yes, I got it now !
:D

As long as people know it ("compile on target"), then I believe we can live with it.

As I wrote, i'm totally lost with my new MacBook Air (last time I used a mac was... in 1995, since then i went to the other side of the "force"). And I was afraid to miss something important, a special parameter in LiveCode.

So anyway thanks all for your answers.

Re: Windows -> MacOS : file format ?

Posted: Thu Apr 09, 2020 9:28 am
by FourthWorld
It's not necessary to compile in the target platform. You can compile for nearly all platforms from nearly all platforms, with the exception that Apple requires you to buy a Mac to deploy to iOS, and deploying to Mac from Windows will require that you set the executable bit.

And itlf you mount a network volume with a Unix or Linux file system you should be able to compile to that even from Windows.

It may even be (don't take my word for it, fuzzy memory and never needed to do this myself) that if you zip the Mac bundle before copying it from a Windows machine the executable bit is preserved.

And all stacks can be run from a copy of LiveCode in any supported platform, regardless of the platform they were made on.

Try to reduce that to a single sentence. :)

Re: Windows -> MacOS : file format ?

Posted: Thu Apr 09, 2020 9:31 am
by richmond62
Try to reduce that to a single sentence.
I'd rather wash the dishes. 8)

Re: Windows -> MacOS : file format ?

Posted: Thu Apr 16, 2020 1:43 am
by PaulDaMacMan
I thought some Windows setups could preserve things like the executable bit, like the way that some WinNT servers supported the classic Mac OS 9 resource forks back in the day? And there's software like "MacDrive" for Windows that let you use Mac HFS+ formatted drives in Windows, as well as other software that let you use EXT *nix formatted partitions (although the MacOS can't natively read those either).
Also, I didn't think you could set the executable bit on the Mac app binary from the "Get Info" window, only certain basic user/admin permissions. I've always used the Unix command from the terminal (sudo chmod +x "pathToMyBinary) to do that when the need has risen (rarely).

Re: Windows -> MacOS : file format ?

Posted: Thu Apr 16, 2020 1:50 am
by PaulDaMacMan
As a test I just copied the Mac OS (Mohave 10.4.x) app/bundle TexEdit.app to an NTFS formatted drive shared from a Windows server over SMB file sharing and it launched on the Mac from there without a problem.

Re: Windows -> MacOS : file format ?

Posted: Thu Apr 16, 2020 9:47 am
by bogs
Huh, I had never tested doing an app from any other platform to Mac until this morning, where I had some time to waste. I fired up my (ancient) OSX 10.6.x Snow Leopard, and created a simple testHello stack. No surprise, it ran with no issues.

I moved the stack to my 'nix box, and saved it as a mac 32bit standalone there, then uploaded it to dropbox, then downloaded it to Snowy. What a shock, I could not get it to run to save my life.

Now, I don't normally consider myself to be the brightest bulb in the pack, but I would put myself on par with the average user no matter which desktop environment I'm in. Someone want to point out what I might be missing?
WTF ?!
WTF ?!

Re: Windows -> MacOS : file format ?

Posted: Mon Apr 20, 2020 8:46 pm
by bogs
Wow, I thought this might have taken all of an hour to get a reply too. You mean to tell me no one has made an OSX app from anything other than an Apple computer? Was my question not clear enough? Everyone else took it as a joke or something? Is 'the yoke on me' ?? Is this thing on?? Bueller....Bueller.... :P

Re: Windows -> MacOS : file format ?

Posted: Tue Apr 21, 2020 3:27 am
by bwmilby
I did try it some time ago and it didn't work. I have not tried recently though. From what I understand, the actual binary needs the execute bit set (which is a couple of levels down in the package).

Ok, just tested...

In the terminal, need to navigate to the folder holding your app and...

Code: Select all

cd AppName.app/Contents/MacOS
chmod +x AppName
or simply

Code: Select all

chmod +x AppName.app/Contents/MacOS/AppName

Re: Windows -> MacOS : file format ? [SOLVED]

Posted: Tue Apr 21, 2020 7:17 am
by bangkok
bwmilby wrote: Tue Apr 21, 2020 3:27 am or simply

Code: Select all

chmod +x AppName.app/Contents/MacOS/AppName
Thank you.

And it's working now (see my first post : stack compiled on windows for mac, then directory copied onto the Mac via file sharing, and then the chmod instruction and then double click to open/launch the app).

Re: Windows -> MacOS : file format ?

Posted: Tue Apr 21, 2020 7:54 am
by bogs
LOL! I had tried that yesterday when I still hadn't seen a response, and it didn't work here anymore than previously. Man I just love being a special snowflake :P
Is it snowing yet?
Is it snowing yet?

Re: Windows -> MacOS : file format ? [SOLVED]

Posted: Tue Apr 21, 2020 3:23 pm
by bwmilby
./TestHello.app