Skip to content

Commit

Permalink
Package download wsl-debiangnulinux
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
tunisiano187 committed May 18, 2024
1 parent 7d5a162 commit b2a32e0
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 0 deletions.
25 changes: 25 additions & 0 deletions automatic/wsl-debiangnulinux/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[![](https://img.shields.io/chocolatey/v/wsl-debiangnulinux?color=green&label=wsl-debiangnulinux)](https://chocolatey.org/packages/wsl-debiangnulinux) [![](https://img.shields.io/chocolatey/dt/wsl-debiangnulinux)](https://chocolatey.org/packages/wsl-debiangnulinux)

## Debian GNU/Linux 9 (stretch) for Windows Subsystem for Linux (Install)

---

###This packages installs Debian GNU/Linux 9 (stretch) for Windows Subsystem for Linux.

**[PACKAGE NOTES](https://github.com/bcurran3/ChocolateyPackages/blob/master/wsl-debiangnulinux/readme.md)**

***
**Click here to [Patreon-ize](https://www.patreon.com/bcurran3) the package maintainer.**
***

---

#### [choco://wsl-debiangnulinux](choco://wsl-debiangnulinux)
To use choco:// protocol URLs, install [(unofficial) choco:// Protocol support ](https://chocolatey.org/packages/choco-protocol-support)

### Package-specific issue
If this package isn't up-to-date for some days, [Create an issue](https://github.com/tunisiano187/Chocolatey-packages/issues/new/choose)

Support the package maintainer and [![Patreon](https://cdn.jsdelivr.net/gh/tunisiano187/Chocolatey-packages@d15c4e19c709e7148588d4523ffc6dd3cd3c7e5e/icons/patreon.png)](https://www.patreon.com/tunisiano)

---
32 changes: 32 additions & 0 deletions automatic/wsl-debiangnulinux/tools/ChocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
$ErrorActionPreference = 'Stop'
$packageName = 'wsl-debiangnulinux'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = 'https://aka.ms/wsl-debian-gnulinux'
$checksum = '02CC1CE48E2FC21331B6FAA2AF44F22FBB9E9C219EAF74202970164BE6E3D3D8'
$unzipLocation = "$toolsDir\unzipped"
$exe = 'debian.exe'

New-Item $unzipLocation -type directory | out-null

$packageArgs = @{
packageName = $packageName
unzipLocation = $unzipLocation
fileType = 'ZIP'
url = $url
checksum = $checksum
checksumType = 'sha256'
}

Install-ChocolateyZipPackage @packageArgs

$packageArgs = @{
packageName = $packageName
softwareName = ''
fileType = 'EXE'
silentArgs = 'install --root'
file = "$unzipLocation\$exe"
validExitCodes = @(0)
}

Install-ChocolateyInstallPackage @packageArgs
wslconfig /list
5 changes: 5 additions & 0 deletions automatic/wsl-debiangnulinux/tools/ChocolateyUninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$ErrorActionPreference = 'Stop'
$packageName = 'wsl-debiangnulinux'

wslconfig /unregister Debian
wslconfig /list
34 changes: 34 additions & 0 deletions automatic/wsl-debiangnulinux/wsl-debiangnulinux.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>wsl-debiangnulinux</id>
<version>9.0.0.020180923</version>
<title>Debian GNU/Linux 9 (stretch) for Windows Subsystem for Linux (Install)</title>
<authors>Software in the Public Interest, Inc. and others</authors>
<owners>bcurran3</owners>
<licenseUrl>https://www.debian.org/license</licenseUrl>
<projectUrl>https://www.microsoft.com/en-us/windows/features</projectUrl>
<iconUrl>https://www.debian.org/logos/openlogo-100.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>###This packages installs Debian GNU/Linux 9 (stretch) for Windows Subsystem for Linux.

**[PACKAGE NOTES](https://github.com/bcurran3/ChocolateyPackages/blob/master/wsl-debiangnulinux/readme.md)**

***
**Click here to [Patreon-ize](https://www.patreon.com/bcurran3) the package maintainer.**
***</description>
<summary>This packages installs Debian GNU/Linux 9 (stretch) for Windows Subsystem for Linux.</summary>
<releaseNotes>https://docs.microsoft.com/en-us/windows/wsl/release-notes</releaseNotes>
<copyright>Copyright © SPI and others</copyright>
<tags>wsl debian gnu stretch linux</tags>
<packageSourceUrl>https://github.com/bcurran3/ChocolateyPackages/tree/master/wsl-debiangnulinux</packageSourceUrl>
<docsUrl>https://docs.microsoft.com/en-us/windows/wsl/about</docsUrl>
<bugTrackerUrl>https://github.com/Microsoft/WSL/issues</bugTrackerUrl>
<dependencies>
<dependency id="wsl" version="1.0.1" />
</dependencies>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
Binary file added icons/wsl-debiangnulinux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b2a32e0

Please sign in to comment.