Skip to content

Instantly share code, notes, and snippets.

View quynhftw's full-sized avatar

Quinn Le quynhftw

  • Portland, OR
View GitHub Profile
@quynhftw
quynhftw / default.ps1
Created November 18, 2016 18:17 — forked from jonnii/default.ps1
Creating a click once package using mage and powershell
task PrepareClickOnce {
write-host 'Add mage to our path'
$env:path += ";C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools"
write-host "Preparing install directory"
$installersRoot = '..\installers\app'
if (test-path $installersRoot) {
Write-Host "Cleaning installers root"
rm -r -force $installersRoot > $null
function Update-AssemblyInfoVersionFiles
{
Param
(
[Parameter(Mandatory=$true)]
[string]$productVersion
)
$buildNumber = $env:BUILD_BUILDNUMBER
if ($buildNumber -eq $null)