为 WSL 创建自定义 Linux 分发版Creating a Custom Linux Distribution for WSL

使用我们的开源 WSL 示例生成用于 Microsoft Store 的 WSL 发行版包和/或创建用于旁加载的自定义 Linux 发行版程序包。Use our open source WSL sample to build WSL distro packages for the Microsoft Store and/or to create custom Linux distro packages for sideloading. 可在 GitHub 上找到 发行版启动器 存储库。You can find the distro launcher repo on GitHub.

此项目可实现以下功能:This project enables:

  • Linux 分发维护人员,用于打包并提交 Linux 分发版,作为在 WSL 上运行的 appxLinux distribution maintainers to package and submit a Linux distribution as an appx that runs on WSL
  • 开发人员创建可在其开发计算机上旁加载的自定义 Linux 分发版Developers to create custom Linux distributions that can be sideloaded onto their dev machine

背景Background

我们通过 Microsoft Store 将 Linux 发行版 for WSL 分发为 UWP 应用程序。We distribute Linux distros for WSL as UWP applications through the Microsoft Store. 可以安装那些随后在 WSL 上运行的应用程序-位于 Windows 内核中的子系统。You can install those applications that will then run on WSL - the subsystem that sits in the Windows kernel. 此交付机制具有许多好处,如 更早的博客文章中所述。This delivery mechanism has many benefits as discussed in an earlier blog post.

旁加载自定义 Linux 发行版包Sideloading a Custom Linux Distro Package

可以在个人计算机上创建自定义 Linux 发行版包作为应用程序旁加载。You can create a custom Linux distro package as an application to sideload on your personal machine. 请注意,除非你作为分发维护程序提交,否则不会通过 Microsoft Store 分发自定义包。Please note that your custom package would not be distributed through the Microsoft Store unless you submit as a distribution maintainer. 若要将计算机设置为旁加载应用,需要在 "For 开发人员" 下的 "系统设置" 中启用此项。To set up your machine to sideload apps, you will need to enable this in the system settings under “For Developers”. 请确保已选择 "开发人员模式" 或 "旁加载应用"Be sure to either have developer mode, or sideload apps selected

适用于 Linux 发行版维护人员For Linux Distro Maintainers

若要提交到应用商店,你将需要与我们合作来接收发布批准。To submit to the Store, you will need to work with us to receive publishing approval. 如果你是有兴趣向 Microsoft Store 添加分发的 Linux 分发所有者,请联系 wslpartners@microsoft.com 。If you are a Linux distribution owner interested in adding your distribution to the Microsoft Store, please contact wslpartners@microsoft.com.

入门Getting Started

按照 发行版启动器 GitHub 存储库中的说明创建自定义 Linux 发行版包。Follow the instructions on the Distro Launcher GitHub repo to create a custom Linux distro package.

团队博客Team Blogs

提供反馈Provide Feedback