-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyinstaller builds for macOS #129
Comments
NSZ is written in Python and fully cross-platform. I see no reason why it wouldn't work on macOS. If you encounter any issues running NSZ on macOS please let me know. There are a lot of macOS and Linux users using NSZ without any issues. I tested NSZ on x64, ARM64 and even on the RISCV64 architecture. So even running it on ARM64 based Apple hardware should be no issue. There are just no portable versions for those operating systems so you have to first install python and then use "pip install nsz" or "pip install nsz[gui]" (if you want the GUI version) to install nsz. NSZ is open-source so feel free to use it if you want to build a macOS application based on it. If you do please let me know so I can promote it to interested users. |
I can install and run nsz, but I can't build a MacOS App using py2app. I use py2applet --make-setup nsz.py to regenerate the setup and build it, but on my local machine, it runs fine, but when I send it to others, it will report an error.
|
use
run unix file
|
Please help me, I'm not a developer, I just want a nsz.app for MacOS. |
Having a portable macOS application would be awesome. You almost got it working - you got very far in the startup sequence. Seems like pyinstaller just forgot to pack gui/fonts/MPLUS1p-Medium.ttf. You have to tell pyinstaller that this resource file is required for nsz to work. You can do so by adding it as resource to the data array in your |
Something else you can do is to remove the custom font: Line 3 in 639244e
Keep in mind that this is will make the GUI look slightly worse and might lead to visual bugs but it's something you can try if you are unable to add gui/fonts/MPLUS1p-Medium.ttf as resource to pyinstaller. |
If you want to do it using py2app you would need to modify setup.py and under install_requires add all the libraries it doesn't find automatically. I recommend to stick with pyinstaller as nsz is proven to be compatible with pyinstaller. So instead, just follow the advice in my last messages. |
|
Can you please release a MacOS version? I, a layman in development, have been tortured for a day and a night. |
Sorry that you had such a bad experience with pyinstaller. I might add official support for pyinstaller again. If I do, I could release pyinstaller builds for Linux/macOS. It should be quite easy to add support for pyinstaller as it’s something nsz had in the past. Maybe I find time to do this in the next few hours. |
Thank you and look forward to it. |
In my latest commit I added support for pyinstaller. I only tested it on Windows so far. Please get latest commit and execute the PyInstallerBuild.sh script inside the "dev" folder to see if there are still any errors on macOS. The resulting application should be located under nsz\dist_init_ which you have to manually execute (auto-start only works on Windows). Let me know if you encounter any issues. There is probably a lot that can be improved inside init.spec but for now the goal was just to get pyinstaller working again. |
run nsz unix file
|
@kailous you can try building the binary by using the command below. I've successfully built one on my mac. I think because the default name of binary is
|
macos: ventura 13.1 (M1) Added keys to $HOME/.switch/ I didn't add nsz to PATH so |
Now that Ryujinx already supports MacOS, whether it can support cross-platform operation. So that users can build Mac apps themselves.
The text was updated successfully, but these errors were encountered: