Giter Site home page Giter Site logo

lv80 / apps.exchange.packager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adn-devtech/apps.exchange.packager

0.0 2.0 0.0 10.34 MB

Cross platform scripts to produce installers for the Autodesk http://apps.exchange.autodesk.com store

License: Other

HTML 13.21% Python 84.21% Shell 1.56% Batchfile 0.78% Visual Basic 0.24%

apps.exchange.packager's Introduction

Cross platform Apps Exchange Store Packager Scripts

producing WIX/MSI for Windows, PKG for Mac OSX and shell/tar file for Linux,

Note: Signatures files aren't posted in this repo. But the scripts can work with/or without the signatures files. Signing installers for Windows and Mac OSX aren't strictly required, but recommended. If no digital signature is provided, the user will be prompted during install.

Setup

For all OS, clone this repo on your local machine.

Windows

  1. Go to http://wixtoolset.org/
    • Download and install
  2. Go to http://python.org
    • Download and install the latest 2.x version
  3. Go in apps.exchange.packager\scripts, and open the setup-win.bat file in a text editor
    • Change the subst @ line #6 to point where you installed the 'Wix Toolset' at step #1
    • Change the PYTHON_EXE variable @ line #10 to point to your Python executable

OSX

  1. Download the PackageMaker tool from the Apple developer center in the Auxiliary Tools for Xcode package.

  2. Go in apps.exchange.packager\scripts, and open the setup-osx file in a text editor

    • Change the PACKAGER variable @ line #9 to point where you installed the 'PackageMaker.app'
  3. Make sure the temp and output folders have write permission.

Linux

No setup required! You're all set.
Just make sure the temp and output folders have write permission.

Usage

There is 3 scripts available. One for each platform: win, osx, linux.

  osx [-h] [-p <path>] [-t <template>] [-v <version>] <project>

	-p			Path to the directory containing the project root folder
				(default is ./Apps/)
	-t			Template to use for packaging the project
				(default is osxPerMachine)
	-v			Product version string
				(default is 2016)
	<project>	Folder name of the project to package

	-h			This message

By default, the scripts assume:

  1. they should find the app in ./Apps/

  2. they should use the per-machine templates

  3. the current Autodesk product platform is the 2016 version

You can change these options using the command flags.

Note: Do not forgoet the closing / on OSX and Linux or \ on Windows for the -p path option.

Examples with the MathNode sample for Maya

Windows: win MathNode

OSX: osx MathNode

Linux: linux MathNode

with the arguments to change the default template

Windows: win -t winPerUser MathNode

OSX: osx -t osxPerUser MathNode

with an hypothetical AutoCAD/Revit/Inventor bundle

Windows: win -p d:\Dev\ -t winPerMachineIcon MyApp.bundle

OSX: osx -p ~/Projects/ -t osxPerMachine MyApp.bundle

Note: Note the difference between Maya and the other products. Maya cannot accept a .bundle extension for an apps.exchange bundle. Whereas, all others do require that extension.


License

This utility is licensed under the terms of the MIT License. Please see the LICENSE file for full details.

Written by

Cyrille Fauvel (Autodesk Developer Network)
http://www.autodesk.com/adn
http://around-the-corner.typepad.com/

apps.exchange.packager's People

Contributors

cyrillef avatar

Watchers

James Cloos avatar SourGrape 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.