Chocolatey Fest - Chocolatey's inaugural conference on Windows Automation (WinOps) is coming - Learn more!

This is not the latest version of Atom available.

Atom

0.123.0

There are no package test results for this package

There are versions of this package awaiting moderation . See the Version History section below.

This package was approved as a trusted package on 11/6/2014.

Read more @http://atom.io

To install Atom, run the following command from the command line or from PowerShell:

C:\> choco install atom --version 0.123.0

To upgrade Atom, run the following command from the command line or from PowerShell:

C:\> choco upgrade atom --version 0.123.0

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $dest = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
    
    . $(Join-Path $dest "functions.ps1")
    
    # Install zip
    $packageName = 'Atom' # arbitrary name for the package, used in messages
    $url = 'https://github.com/atom/atom/releases/download/v0.123.0/atom-windows.zip' # download url
    $url64 = $url # 64bit URL here or just use the same as $url
    Install-ChocolateyZipPackage "$packageName" "$url" "$dest" "$url64"
    
    # Install desktop shortcut
    $desktop = $([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::DesktopDirectory))
    $desktopLink = Join-Path $desktop "$packageName.lnk"
    Install-ChocolateyShortcut -shortcutFilePath $desktopLink -targetPath "$dest\Atom\atom.exe"
    
    # Install start menu shortcut
    $startMenu = $([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::Programs))
    $githubStartMenuGroup = Join-Path $startMenu "GitHub, Inc"
    New-Item $githubStartMenuGroup -type directory -force
    $startMenuLink = Join-Path $githubStartMenuGroup "$packageName.lnk"
    Install-ChocolateyShortcut -shortcutFilePath $startMenuLink -targetPath "$dest\Atom\atom.exe"
    
    # Install explorer menu shortcut
    Install-ChocolateyExplorerMenuItem "Atom" "Open with Atom" "$dest\Atom\atom.exe" "file"
    
    # Install apm shortcut
    Install-BinFile "apm" "$dest\Atom\resources\app\apm\node_modules\atom-package-manager\bin\apm.cmd"
    
  • tools\functions.ps1 Show
    function Install-ChocolateyShortcut {
      param(
        [string] $shortcutFilePath,
        [string] $targetPath,
        [string] $workingDirectory,
        [string] $arguments,
        [string] $iconLocation,
        [string] $description
      )
    
      Write-Debug "Running 'Install-ChocolateyShortcut' with parameters ShortcutFilePath: `'$shortcutFilePath`', TargetPath: `'$targetPath`', WorkingDirectory: `'$workingDirectory`', Arguments: `'$arguments`', IconLocation: `'$iconLocation`', Description: `'$description`'";
    
      if(!$shortcutFilePath) {
        Write-ChocolateyFailure "Install-ChocolateyShortcut" "Missing ShortCutFilePath input parameter."
        return
      }
    
      if(!$targetPath) {
        Write-ChocolateyFailure "Install-ChocolateyShortcut" "Missing TargetPath input parameter."
        return
      }
    
      if(!(Test-Path($targetPath))) {
        Write-ChocolateyFailure "Install-ChocolateyShortcut" "TargetPath does not exist, so can't create shortcut."
        return
      }
    
      if($iconLocation) {
        if(!(Test-Path($iconLocation))) {
          Write-ChocolateyFailure "Install-ChocolateyShortcut" "IconLocation does not exist, so can't create shortcut."
          return
        }
      }
    
      if($workingDirectory) {
        if(!(Test-Path($workingDirectory))) {
          Write-ChocolateyFailure "Install-ChocolateyShortcut" "WorkingDirectory does not exist, so can't create shortcut."
          return
        }
      }
    
      Write-Debug "Creating Shortcut..."
    
      try {
        $global:WshShell = New-Object -com "WScript.Shell"
          $lnk = $global:WshShell.CreateShortcut($shortcutFilePath)
          $lnk.TargetPath = $targetPath
        $lnk.WorkingDirectory = $workingDirectory
          $lnk.Arguments = $arguments
          if($iconLocation) {
              $lnk.IconLocation = $iconLocation
          }
          $lnk.Description = $description
          $lnk.Save()
    
        Write-Debug "Shortcut created."
    
        Write-ChocolateySuccess "Install-ChocolateyShortcut completed"
    
      }
      catch {
        Write-ChocolateyFailure "Install-ChocolateyShortcut" "There were errors attempting to create shortcut. The error message was '$_'."
      }
    }
    
    function Install-BinFile {
      param(
        [string] $name,
        [string] $path
      )
    
      Write-Debug "Running 'Install-BinFile' for $name with path:`'$path`'";
    
      $packageBatchFileName = Join-Path $nugetExePath "$name.bat"
    
      if (Test-Path ($packageBatchFileName)) {Remove-Item $packageBatchFileName -force}
      $path = $path.ToLower().Replace($nugetPath.ToLower(), "..\").Replace("\\","\")
      $path = "%DIR%$($path)"
      $pathBash = $path.Replace("%DIR%..\","`$DIR/../").Replace("\","/")
      Write-Host "Adding $packageBatchFileName and pointing to `'$path`'." -ForegroundColor $Note
    "@echo off
    SET DIR=%~dp0%
    cmd /c ""$path %*""
    exit /b %ERRORLEVEL%" | Out-File $packageBatchFileName -encoding ASCII
    }
    

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • https://github.com/orgs/atom/members

Tags

Release Notes

https://atom.io/releases

Version History

Version Downloads Last updated Status
Atom 1.29.0-beta0 3 Friday, June 22, 2018 submitted
Atom 1.28.0 2 Friday, June 22, 2018 submitted
Atom 1.28.0-beta3 55 Wednesday, June 6, 2018 approved
Atom 1.28.0-beta2 42 Thursday, May 31, 2018 approved
Atom 1.28.0-beta1 71 Monday, May 21, 2018 approved
Atom 1.28.0-beta0 49 Tuesday, May 15, 2018 approved
Atom 1.27.1 31140 Monday, May 21, 2018 approved
Atom 1.27.0 9161 Tuesday, May 15, 2018 approved
Atom 1.27.0-beta1 76 Friday, April 27, 2018 approved
Show More

Discussion for the Atom Package

Ground rules:

  • This discussion is only about Atom and the Atom package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Atom, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok