Giter VIP home page Giter VIP logo

pa.utilities's Introduction

PA.Utilities

Build status

PA.Utilities.InnoSetupTask

PA.Utilities.InnoSetupTask is a tool to automaticaly generate innosetup installer during build

Installation

$ nuget install PA.Utilities.InnoSetupTask

Basic Workflow

For single project solution

  1. Create iss file and setup.config at the root of the project

  2. iss file is internally preprocessed during build

  • Project information is added to [setup] section
  • Project dependencies are added to [file] section
  • Custom code is added to code [section]
  1. preprocessed iss file is built with ISCC (currently supporting innosetup 5.5.9)

  2. setup is delivered in $(outputPath)/Output folder, otherwise specified in iss file

Complex Workflow

With multiple project solutions

  1. Create setup empty project (eg: SetupProject)

  2. Add all projects concerned by setup as reference

  3. For all referenced project, add a setup.config (a default one is generated if not found)

  4. iss file is internally preprocessed during build

  • Project information is added to [setup] section
  • Project dependencies are added to [file] section as source
  • Custom code is added to [code] section
  1. Preprocessed iss file is built with ISCC (currently supporting innosetup 5.5.9)

  2. Setup is delivered in SetupProject/$(outputPath)/Output folder, otherwise specified in iss file

setup.config

Setup.config is a xml file used at project level to specify component and destdir for each output of current project

setup element is the root element

  • component attribute must be initialy defined in [components] section of iss file

target element specify behavior for project main binary

  • destdir attribute specify destination directory during intall (iss variables are supported, identified special folders are replaced by corresponding iss variable)
  • task attribute must be initialy defined in [task] section of iss file

dependencies element specify behavior for project dependencies

  • destdir attribute specify destination directory during intall (iss variables are supported, identified special folders are replaced by corresponding iss variable)
  • task attribute must be initialy defined in [task] section of iss file

files element specify behavior for files marked for copy to output directory

  • destdir attribute specify destination directory during intall (iss variables are supported, identified special folders are replaced by corresponding iss variable)
  • task attribute must be initialy defined in [task] section of iss file

If a file appears in multiple project, only one source is created by destdir. tasks and component are handled with boolean expressions

<?xml version="1.0" encoding="utf-8" ?>
<setup components="Common">
  <target destdir="{app}\." />
  <dependencies destdir="{app}\." />
  <files destdir="{app}\." />
</setup>

Bonus

Works well with GitVersion in order to get the semantic version of the commit being built.

License (MIT)

Copyright (c) 2017 Thomas Gervais

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

pa.utilities's People

Contributors

tomgrv avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.