I am in the process of signing a nextcloud app and my app folder contains a .git and .idea folder. If I sign the app these directories and their content get signed too and I can’t remove them afterwards without signature errors.
I tried copying the folder to a temporary location deleted both hidden folders and signed it then. But now I need to commit signature.json. I could probably copy .git back and commit it then. But this all seems to be cumbersome and complicated.
I did not find a --ignore-folder parameter for occ
ot use during signing.
What is the best practice here? Or does everyone keep their app folders in a subfolder so that .git is not directly inside it?