t2linux / wiki

Repository for the t2linux.org wiki
https://wiki.t2linux.org
Creative Commons Attribution Share Alike 4.0 International
169 stars 60 forks source link

Improve the linux part of the firmware script #500

Closed sharpenedblade closed 4 months ago

sharpenedblade commented 5 months ago

It should work better now, and doesnt mess with mounts

AdityaGarg8 commented 5 months ago

I actually was thinking of making binaries that run only in macOS using pyinstaller.

It would make a .tar file in macOS itself then.

sharpenedblade commented 5 months ago

We cannot use python3 on macOS since it's not shipped with it. User will have to install python3. So, either ship a binary with macOS or use Linux to rename.

/usr/bin/python3 is from apple for me, it might be xcode dev tools but that can be installed in 1 command (xcode-select --install).

AdityaGarg8 commented 5 months ago

We cannot use python3 on macOS since it's not shipped with it. User will have to install python3. So, either ship a binary with macOS or use Linux to rename.

/usr/bin/python3 is from apple for me, it might be xcode dev tools but that can be installed in 1 command (xcode-select --install).

So we don't want user to install anything as far as macOS is considered.

AdityaGarg8 commented 5 months ago

Also, don't make the user install any additional software on macOS, that includes python3

sharpenedblade commented 5 months ago

Also, don't make the user install any additional software on macOS, that includes python3

I am going to try to embed python, but that makes the firmware script huge and it needs custom build steps which are very finicky. The python packaging ecosystem is a huge mess, and apple makes it very hard to distribute stuff on macos.

AdityaGarg8 commented 5 months ago

Also, don't make the user install any additional software on macOS, that includes python3

I am going to try to embed python, but that makes the firmware script huge and it needs custom build steps which are very finicky. The python packaging ecosystem is a huge mess, and apple makes it very hard to distribute stuff on macos.

Or we could just use Linux to rename. I had said I'll prefer macOS, but since embedding python is difficult, it's better to stay on Linux.

AdityaGarg8 commented 5 months ago

And if we want to embed, I guess pyinstaller is perfect for this scenario.

sharpenedblade commented 5 months ago

This just uses new mountpoints now, I will make a new PR with the python script running on macos

sharpenedblade commented 4 months ago

I fixed the requested changes.