cnvogelg / amitools

Various tools for using AmigaOS programs on other platforms
257 stars 71 forks source link

Question about the way to use vamos #144

Open walkero-gr opened 4 years ago

walkero-gr commented 4 years ago

Hello there, I am really interested to use vamos on one project I develop, at the CI/CD process, where I need to change files protection attributes before creating the lha archive file. For that I need to use Protect command, that requires dos.library.

On my first tests yesterday, the above didn't work because couldn't find dos.library. Maybe a misconfiguration from my side.

What do I need to make it work? I was thinking that a good solution might be to use the AROS 68k boot disk, which includes protect command, and is open source project. Have anyone tried something like that? Should I create a System folder with libraries and C commands?

I want to create the above in a docker container, which will be able to be used on different projects, wherever necessary.

Any recommendation will be helpful. Thank you for your help.

walkero-gr commented 4 years ago

I created today the first version of the docker image, which can be found at https://github.com/walkero-gr/amitoolsondocker Based on some tests I did it seems to work now, i.e. with the following line:

vamos -C 68020 -V aros:/home/aros -a C:aros:c -a Libs:aros:Libs C:Protect c:list ADD srwed

I get the following result

14:37:38.535        lib:WARNING:  ? CALL:  414 SplitName( name[d1]=00005bd0, seperator[d2]=0000003a, buf[d3]=00005353, oldpos[d4]=00000000, size[d5]=00000065 ) from PC=0024ce -> d0=0 (default)
   list..done

and the file has changed attributes. Need more tests though.

cnvogelg commented 4 years ago

I doubt that vamos will help you here... Since it works directly on the host file system it cannot map all protection bits to an equivalent host bit and ignores them silently...

I'd suggest to have a look at python-lhafile. This library allows to you to create lha archives in your python scripts. Maybe this lib allows you to specify the Amiga attributes bit by bit...

walkero-gr commented 4 years ago

You are right. Didn't make any change on the files. Is there a way to use hdf files with vamos?