rschupp / PAR-Packer

(perl) Generate stand-alone executables, perl scripts and PAR files https://metacpan.org/pod/PAR::Packer
Other
48 stars 13 forks source link

Setting tmp folder #81

Closed fantinuoli closed 8 months ago

fantinuoli commented 8 months ago

pp sets automatically the tmp folder in which to unpack the application. On macOS this is typically:

% echo $TMPDIR

The issue is that this folder will be cleared after a reboot. Since apps can be heavy, start time will be very slow after each reboot. Is it possible to force another location to unpack the application? Something like:

% echo $HOME

rschupp commented 8 months ago

Is it possible to force another location to unpack the application?

Set the environment variable PAR_GLOBAL_TMPDIR, cf. https://metacpan.org/pod/PAR#NOTES Note that this directory may grow over time as every "updated" version of a packed ececutable will be extracted to a different subdirectory and outdated ones are not purged.