-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild-chocolatey.ps1
31 lines (23 loc) · 991 Bytes
/
build-chocolatey.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Script builds a Chocolatey Package and tests it locally
#
# This copies the binaries directly into the Tools folder - no ChocolateyInstall.ps1 is used
#
# Assumes: Uses latest release out of Pre-release folder
# Release has been checked in to GitHub Repo
# Builds: ChocolateyInstall.ps1 file with download URL (by Tag Id) and sha256 embedded
# *** IMPORTANT! ***
# Make sure you ADD A TAG with the version number when the zip file is pushed! (ie. 0.2.5)
# or else the zip file will not be found on GitHub. You can run:
#
# createrelease.ps1
#
# to create a new release, push to GitHub and tag the commit with the version,
# and update the Chocolatey script
# Run this **AFTER** you have create the Self Contained EXE build (Zip file)
cd "$PSScriptRoot\Chocolatey"
Remove-Item *.nupkg
# Create .nupkg from .nuspec
choco pack LiveReloadWebServer.nuspec
choco uninstall "LiveReloadWebServer" -f
choco install "LiveReloadWebServer" -fd -y -s ".\"
cd "$PSScriptRoot"