blender-to-gmstudio / blender-to-smf

Import-Export of Blender model from/to SMF model format
MIT License
11 stars 2 forks source link

Change directory structure of the repository to allow simple installation from the zip archive generated by GitHub #29

Closed bartteunis closed 2 years ago

bartteunis commented 2 years ago

The current repository structure on GitHub has an annoying and unnecessary limitation: the download zip is named blender-to-smf-master.zip with no subdirectory blender-to-smf in it. As a consequence, when installing the add-on from that zip file, which should technically work, Blender puts the add-on in a directory blender-to-smf-master while it really should be just blender-to-smf.

This can be solved by putting everything under a blender-to-smf folder. The zip will still have the same name, but the additional directory inside the zip makes it clear to Blender that it should create a subdirectory, with that name.\ All other files will of course come with it so ideally users should still use the release zip to do a proper installation of the add-on.

Another advantage of this directory structure would be the option to simply put a directory with example models next to it.

bartteunis commented 2 years ago

Verified the required directory structure. The zip can have any name as long as it contains a subdirectory with the correct name at the root level.\ That directory will be created at %APPDATA%\Blender Foundation\Blender\2.90\scripts\addons with everything under it as well. This fixes any zip naming issue that might occur.

bartteunis commented 2 years ago

Directories that are placed next to the blender-to-smf directory are placed in the addons folder as well, but are not properly removed when the add-on is removed. This is not a very clean way to do it.

bartteunis commented 2 years ago

Closing this issue since there seems to be no perfect way to do this. People using this add-on should install from a release package or by cloning into the right add-on directory.