Universal build launches as Intel on M1
Aivar Annamaa <[email protected]> Mon, 28 Mar 2022 11:08:27 +0300
| Newsgroups | gmane.comp.python.apple |
|---|---|
| Message-ID | <CAEbkakf9i1T8H81x5D+0GcRJgGdQwmMeTBmgspbGwxx8ZRHTpA@mail.gmail.com> |
--===============1429479681823405691== Content-Type: multipart/alternative; boundary="000000000000d2ca3b05db42d162" --000000000000d2ca3b05db42d162 Content-Type: text/plain; charset="UTF-8" Hi! I have an app bundle, with embedded python.org's universal build of Python 3.10.2 framework and a Tkinter-based GUI ( https://github.com/thonny/thonny/releases/tag/v4.0.0b1) I've used IDLE's approach in the Info.plist, and the launcher script. Functionally all is working fine, but a M1 user reported, that when opened from Finder, the app is launched in "Intel" mode. When the launcher is invoked in Terminal (/Applications/Thonny.app/Contents/MacOS/thonny), the app gets run in AMD64 mode. I don't have a M1 myself, so I haven't reproduced it myself. The same user now said that latest IDLE (3.10.4) runs in AMD64 mode even when launched from Finder. Any ideas what to check or try in order to make my app run in native mode? My launcher script template is here: https://github.com/thonny/thonny/blob/master/packaging/mac/Thonny.app.initial_template/Contents/MacOS/thonny (shebang becomes gets set to .../Thonny.app/Contents/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python by the postinstall script) Info.plist template is here: https://github.com/thonny/thonny/blob/master/packaging/mac/Thonny.app.initial_template/Contents/Info.plist Best regards, Aivar --000000000000d2ca3b05db42d162 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi!<div><br></div><div>I have an app bundle, with embedded= <a href=3D"http://python.org">python.org</a>'s universal build of Pyth= on 3.10.2 framework and a Tkinter-based GUI (<a href=3D"https://github.com/= thonny/thonny/releases/tag/v4.0.0b1">https://github.com/thonny/thonny/relea= ses/tag/v4.0.0b1</a>)</div><div><br></div><div>I've used IDLE's app= roach in the Info.plist, and the launcher script. Functionally all is worki= ng fine, but a M1 user reported, that when opened from Finder, the app is l= aunched in "Intel" mode. When the launcher is invoked in Terminal= (/Applications/Thonny.app/Contents/MacOS/thonny), the app gets run in AMD6= 4 mode. I don't have a M1 myself, so I haven't reproduced it myself= .</div><div><br></div><div>The same user now said that latest IDLE (3.10.4)= runs in AMD64 mode even when launched from Finder.<br></div><div><br></div= ><div>Any ideas what to check or try in order to make my app run in native = mode?</div><div><br></div><div>My launcher script template is here:=C2=A0<a= href=3D"https://github.com/thonny/thonny/blob/master/packaging/mac/Thonny.= app.initial_template/Contents/MacOS/thonny">https://github.com/thonny/thonn= y/blob/master/packaging/mac/Thonny.app.initial_template/Contents/MacOS/thon= ny</a> (shebang becomes gets set to=C2=A0.../Thonny.app/Contents/Frameworks= /Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python = by the postinstall script)</div><div><br></div><div>Info.plist template is = here:=C2=A0<a href=3D"https://github.com/thonny/thonny/blob/master/packagin= g/mac/Thonny.app.initial_template/Contents/Info.plist">https://github.com/t= honny/thonny/blob/master/packaging/mac/Thonny.app.initial_template/Contents= /Info.plist</a><br></div><div><br></div><div>Best regards,<br>Aivar</div></= div> --000000000000d2ca3b05db42d162-- --===============1429479681823405691== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Pythonmac-SIG maillist - [email protected] https://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG --===============1429479681823405691==--