-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2567 from AdmiringWorm/nodejs-updater
- Loading branch information
Showing
6 changed files
with
75 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
VERIFICATION | ||
Verification is intended to assist the Chocolatey moderators and community | ||
in verifying that this package's content are trustworthy. | ||
|
||
The installer/archive has been downloaded from the authors official download link listed on <https://nodejs.org/en/download/prebuilt-installer> | ||
and can be verified using the following: | ||
|
||
1. Download the following installers/archives | ||
- 32-Bit: <DIRECT_32BIT_DOWNLOAD_URL> | ||
- 64-Bit: <DIRECT_64BIT_DOWNLOAD_URL> | ||
2. Use one of the following methods to obtain the checksum | ||
- Use powershell function 'Get-FileHash' | ||
- Use chocolatey utility 'checksum.exe' | ||
3. Verify the downloaded installers/archives matches the following CHECKSUM_TYPE checksum: | ||
- 32-Bit Checksum: <32BIT_CHECKSUM> | ||
- 64-Bit Checksum: <64BIT_CHECKSUM> | ||
|
||
Additionally, the included 'LICENSE.txt' have been obtained from <https://github.com/nodejs/node/blob/03023fa7ae060c082a014f792d5d1f481a599460/LICENSE>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
VERIFICATION | ||
Verification is intended to assist the Chocolatey moderators and community | ||
in verifying that this package's content are trustworthy. | ||
|
||
The installer/archive has been downloaded from the authors official download link listed on <https://nodejs.org/en/download/prebuilt-installer> | ||
and can be verified using the following: | ||
|
||
1. Download the following installers/archives | ||
- 64-Bit: <DIRECT_64BIT_DOWNLOAD_URL> | ||
2. Use one of the following methods to obtain the checksum | ||
- Use powershell function 'Get-FileHash' | ||
- Use chocolatey utility 'checksum.exe' | ||
3. Verify the downloaded installers/archives matches the following CHECKSUM_TYPE checksum: | ||
- 64-Bit Checksum: <64BIT_CHECKSUM> | ||
|
||
Additionally, the included 'LICENSE.txt' have been obtained from <https://github.com/nodejs/node/blob/03023fa7ae060c082a014f792d5d1f481a599460/LICENSE>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
$ErrorActionPreference = 'Stop' | ||
$ErrorActionPreference = 'Stop' | ||
|
||
$toolsPath = Split-Path $MyInvocation.MyCommand.Definition | ||
|
||
$filePath32 = "$toolsPath\node-v20.18.0-x86.msi" | ||
$filePath64 = "$toolsPath\node-v20.18.0-x64.msi" | ||
$installFile = if ((Get-OSArchitectureWidth 64) -and $env:chocolateyForceX86 -ne 'true') { | ||
Write-Host "Installing 64 bit version"; $filePath64 } | ||
else { Write-Host "Installing 32 bit version"; $filePath32 } | ||
|
||
$packageArgs = @{ | ||
PackageName = 'nodejs.install' | ||
FileType = 'msi' | ||
SoftwareName = 'Node.js' | ||
File = $installFile | ||
File = "$toolsPath\" | ||
File64 = "$toolsPath\" | ||
SilentArgs = '/quiet ADDLOCAL=ALL' | ||
ValidExitCodes = @(0) | ||
} | ||
Install-ChocolateyInstallPackage @packageArgs | ||
|
||
Remove-Item -Force $filePath32, $filePath64 -ea 0 | ||
Remove-Item -Force "$toolsPath\*.exe","$toolsPath\*.msi" -ea 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters