in reply to How do I package up a Perl-TK app for macOS?
I have done this once as an academic exercise, and ran into all of the problems that you are now. The least painful approach was to build / bundle it as a macOS .app file. That involves installing XQuartz so that Tk can compile, building a private perl with perlbrew, and then instaling Tk, cpanm, and PAR_Packer in that private perl. After this, you can use pp to build a self-contained executable, and then use Platypus to build the .app bundle that will execute the pp file.
If you want to distribute the app, your users will have to install XQuartz manually, but you can write your .app file so that it checks to make sure it is installed, and then prompts the user to install it if they don't have it. The alternative would be to bundle Perl, Tk, and X11 inside of the .app, but I didn't want to do that, so if you try that method, you'll have to let me know how it goes.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I package up a Perl-TK app for macOS?
by perltux (Monk) on Nov 14, 2025 at 20:25 UTC | |
by starX (Chaplain) on Nov 14, 2025 at 21:31 UTC | |
by cavac (Prior) on Nov 18, 2025 at 12:20 UTC |