GithubHelp home page GithubHelp logo

jamescrowley / builddeploysupport Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jonnii/builddeploysupport

0.0 1.0 0.0 333 KB

Powershell scripts to help with deployment and building.

License: Apache License 2.0

PowerShell 100.00%

builddeploysupport's Introduction

BuildDeploySupport

BuildDeploySupport is a collection of useful build scripts that you can use in your own project. When you install the package it will create a ./Deploy/Support directory at the same level as your solution and create a solution folder in your project so you can browse the scripts.

You can then use the scripts to simplify your deployment!

Please note that this is a work in progress.

How do I get it?

# to install
install-package BuildDeploySupport

# to upgrade
update-package BuildDeploySupport 

How do I use it?

. .\DeployWeb.ps1

# install your app pool
Install-AppPool 'my-app-pool' -configure {
    Set-Credentials 'username' 'password'
}

# install your website
Install-WebSite $OctopusWebSiteName 'my-app-pool' 'www.yourdomain.com' {
	Set-WindowsAuthentication $true
	Set-AnonymousAuthentication $false	
}

. .\DeployService.ps1

# install a topshelf service
Install-TopshelfService `
    $OctopusOriginalPackageDirectoryPath `
    $OctopusEnvironmentName `
    $OctopusPackageVersion `
    'startup.exe' `
    'Billion Dollar Idea'

# install another service
Install-Service $serviceName `
    -install {
        # install my service
    } `
    -configure {
        # configure my service
    }

# prepare a click once installer from a directory
Prepare-ClickOnce `
    '..\installers' `                   # output directory for the package
    '1.2.3.4' `                         # version of the installer
    '..\bin\Release' `                  # directory to clickonce-ify                     
    'MyApplication.exe' `               # application executable
    'MyCompanyAwesomeApp' `             # your application identity name
    'My Awesome Application' `          # the display name for the application
    'icon.png' `                        # your app icon
    'my company' `                      # the company publishing
    'http://mycompany.com/downloads/' ` # the download location for the installer
    'my-certificate-thumbprint'         # a certificate thumbprint to sign the package with (optional)

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.