建立自訂的 Linux Distro WSLCreating a Custom Linux Distro for WSL

為 Microsoft Store 建置 WSL 散發套件,及/或建立自訂的側載功能的 Linux 散發套件,請使用我們的開放原始碼 WSL 範例。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. 您可以找到distro 啟動器存放庫GitHub 上。You can find the distro launcher repo on GitHub.

此專案可讓:This project enables:

  • 若要封裝並送出為 appx 在 WSL 上執行的 Linux 散發套件的 Linux 發行版本維護者Linux 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

我們將散發的 Linux 散發版本 WSL 為 UWP 應用程式可以透過 Microsoft Store。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. 若要設定您的電腦,側載應用程式,您必須在 「 適用於開發人員 」 下的系統設定中啟用。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

遵循上的指示Distro 啟動器 GitHub 存放庫來建立自訂的 Linux 散發套件。Follow the instructions on the Distro Launcher GitHub repo to create a custom Linux distro package.

小組部落格Team Blogs

提供意見反應Provide Feedback