GithubHelp home page GithubHelp logo

joss13aws / maya-plugin-cpack-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brainexcerpts/maya-plugin-cpack-template

0.0 0.0 0.0 209 KB

Template project to easily generate zip and windows installer in order to distribute/deploy a Maya plugin.

Python 30.58% CMake 61.89% C++ 0.42% Batchfile 7.12%

maya-plugin-cpack-template's Introduction

/** */
/**
@page my_awesome_plugin_for_maya Main title

------------
Introduction
------------

This project demonstrate how to automatically pack and distribute a Maya plugin with CMake and CPack.
The plugin files (.mel .mll icons etc.) are first gathered then a zip archive or a windows installer is generated (using NSIS).

The zip files will provide shortcuts to launch maya and automatically load the plugin.
The windows Installer will make sure Maya is aware of the newly installed plugin so that it is available at the next launch of Maya.

------------------------------------------
Generate packages (zip/windows installer)
------------------------------------------

This template project contains the files usually present in a Maya plugin (to be replaced by your own files):
 - /scripts/ contains your mel/python scripts 
 - /prefs/ stores shelves and icons
 - /lib/mayaxxxx/ the plugin executable (.mll)
 - /doc/ user documentation

In order to automaticaly gather all those files and generate zip/windows installer in /build/packages/ simply launch:

	# run_deploy.py

(You will need python3, CMake and NSIS installed)

---------------
Implementation
---------------

We use CMake and CPack to generate zip and windows installer from the plugin files. In the /deployement folder 
you'll find: 

- CMakeLists.txt : dummy cmake in order to run CPack and the generation of the documenation with Doxygen
- cpack_setup.cmake : general CPack definitions to generate the zip file
- cpack_setup_nsis.cmake: specific CPack definitions to generate the NSIS installer
- doxygen_setup.cmake : CMake instruction to autogenerate the documentation with Doxygen

run_deploy.py simply runs cmake with the /deployement/CMakeLists.txt file. 

---------------
NSIS installer
---------------

The generated windows installer is simply a slightly advanced self-extracting executable.
It will self-extract plugin files under: 

	C:\ProgramData\Autodesk\ApplicationPlugins\plugin_name\

Maya will automatically detect the new folder and will know how to load the plugin thanks to the PackageContents.xml file.
*/

maya-plugin-cpack-template's People

Contributors

brainexcerpts avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.