Skip to content

Commit f05b159

Browse files
committed
update/fix for a working Windows package installer
1 parent c25e110 commit f05b159

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

bin/installChocolatey.cmd

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
@echo off
2-
SET DIR=%~dp0%
3-
4-
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "((new-object net.webclient).DownloadFile('https://chocolatey.org/install.ps1','install.ps1'))"
5-
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& '%DIR%install.ps1' %*"
6-
SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
2+
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
},
1010
"scripts": {
1111
"test": "mocha -R list test/*.js --timeout=0",
12-
"coverage": "npx c8 --reporter json --reporter text npm test && npx codecov -f coverage/coverage-final.json"
12+
"coverage": "npx c8 --reporter json --reporter text npm test && npx codecov -f coverage/coverage-final.json",
13+
"get-installer": "node ./bin/installer.js --get"
1314
},
1415
"files": [
1516
"index.js",

0 commit comments

Comments
 (0)