Ajouter un atelier au gestionnaire des extensions

From FreeCAD Documentation
Revision as of 21:46, 18 November 2022 by David69 (talk | contribs) (Created page with "# Ouvrez l'Éditeur de préférences : sélectionnez l'option {{MenuCommand|Édition → 16px Préférences...}} dan...")
Other languages:

Introduction

Ces instructions expliquent, étape par étape, comment ajouter un atelier Python au Gestionnaire des extensions.

Conditions requises :

Activer le mode développeur

  1. Ouvrez l'Éditeur de préférences : sélectionnez l'option Édition → Préférences... dans le menu.
  2. Sélectionnez l'option Gestionnaire des extensions dans la barre de gauche.
  3. Dans l'onglet Options du gestionnaire des extensions, cochez la case Mode développeur des extensions. Cela activera le bouton Outils du développeur... dans le gestionnaire des extensions.
  4. Appuyez sur le bouton OK pour fermer l'éditeur de préférences.

Create the package.xml file

  1. Open the Addon Manager: select the Tools → Addon manager option from the menu.
  2. Press the Developer tools... button.
  3. The Addon Developer Tools dialog opens.
  4. Enter the following:
    • Path to Addon: The path to the local git repository.
    • Addon Name: This will appear in the listings of the Addon Manager.
    • Description: Idem.
    • Version: Idem.
    • Repository URL
    • Primary branch
    • README URL: Recommended.
    • Icon: The icon must be part of the repository.
  5. Press the button at the bottom of the dialog.
  6. The Content Item dialog opens.
  7. The Content type should be set to Workbench.
  8. Check the This is the only item in the Addon checkbox.
  9. Enter the Workbench class name. This is the class name specified in the InitGui.py file.
  10. For the Subdirectory enter ./.
  11. Press the OK button to close the dialog.
  12. Press the Save button to close the Addon Developer Tools dialog and save the package.xml file.
  13. Press the Close button to close the Addon Manager.
  14. Push the created file to your remote repository.

Add the workbench to the .gitmodules file

  1. Fork https://github.com/FreeCAD/FreeCAD-addons.
  2. Create a new branch.
  3. Edit the .gitmodules file to include your new Addon, in alphabetical order.
  4. Push the new branch to GitHub.
  5. Submit a Pull Request to the FreeCAD-Addons repository with the new .gitmodules file.

See also