How to include .git folder in [Files]

26 views
Skip to first unread message

Bryan Lyon

unread,
May 31, 2024, 12:23:09 AMMay 31
to innosetup
I'm installing an open source project and actually want to distribute updates through git, however, using innosetup I am not getting the .git/ folders that git uses to store it's internal information.

I've tried overriding the [Files] section with a preprocessor that lists all files explicitly, however, I still do not get the .git/ folders included in the installer.

Is there something that I need to do to be able to include the .git folders?  I don't want to manually zip/unzip or recreate the files if there is a way to get innosetup to do it automatically.

Thanks,

Robert van der Hulst

unread,
May 31, 2024, 4:27:56 AMMay 31
to innosetup
Bryan,
The .git folder is hidden. That's probably why it is not included.
I personally think it is a bad idea to include that folder. The folder also contains credential information that you do not want to send to your customers.
Also, the folder will quickly get outdated. Why not call "Git Clone" at the end of the installation and create a new folder on the fly with the latest changes from Github.
And when the client does not have Git, then why bother giving him/her the .git folder>
Robert


Op vrijdag 31 mei 2024 om 06:23:09 UTC+2 schreef Bryan Lyon:
Reply all
Reply to author
Forward
0 new messages