建立 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,將適用于 WSL 的 Linux 散發版本散發為 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. 這項傳遞機制有許多優點,如 先前的 blog 文章所述。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. 若要將您的電腦設定為側載 apps,您必須在 [適用于開發人員] 下的 [系統設定] 中啟用此功能。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