Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

frydrych

macrumors member
Original poster
Aug 8, 2010
45
4
Sweden
hi

Tried about everything, for a Amiga project I need to create .lha archives but I can’t find anything. Can someone please help out? Unpacking lha there are plenty...

Thanks

F
 

organicCPU

macrumors 6502a
Aug 8, 2016
839
296
There is a command line tool called lha by Tsugio Okamoto that can encode and decode LHA archives.

The source code can be found, if links are followed at https://lha.osdn.jp.
You might prefer simply to install lha via homebrew formula https://formulae.brew.sh/formula/lha (brew install lha)
This manpage was quite helpful for me to understand the command´s syntax: https://www.mankier.com/1/lha

As a side note: with StuffIt Deluxe, I could manage to write LZH files and operate on LHA files generated by lha and vice versa. However, if a symbolic link is stored inside a LHA or LZH file, StuffIt Deluxe and lha seems to treat things different. lha stores a symlink as a directory (lhd) while StuffIt Deluxe seems to take some different approach. At least in that scenario the tools are not interchangeable and are going to throw an error.

Thus, I've no idea, if lha is absolutely conform to the standard that Amiga OS is expecting.
Maybe you could report back here, if lha works for you.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.