代码拉取完成,页面将自动刷新
通过微软的launcher启动的openeuler发行版
sideload-xxx.zip
解压后,进入DistroLaucher-xxx_Test
目录xxx.cer
文件,参考,简单来说:
xxx.cer
local machine
trusted people
DistroLauncher-Appx_xxx_<arm64/x64>.appxbundle
安装openeuler WSL应用github action
用户开发者自定义You're wellcome
MIT
docker/Dockerfile
)New-SelfSignedCertificate -Type Custom -Subject "CN=openEuler Infra WSL" -TextExtension @("2.5.29.37={critical}{text}1.3.6.1.5.5.7.3.3", "2.5.29.19={text}") -KeyUsage DigitalSignature -FriendlyName "openEuler" -CertStoreLocation "Cert:\CurrentUser\My" -NotBefore (Get-Date) -NotAfter (Get-Date).AddYears(5)
$password = ConvertTo-SecureString -String <Your Password> -Force -AsPlainText
Export-PfxCertificate -cert "Cert:\CurrentUser\My\<Certificate Thumbprint>" -FilePath <FilePath>.pfx -Password $password
openssl pkcs12 -in <pfx_with_passwd> -nodes -out temp.pem -password pass:<passwd>
openssl pkcs12 -export -in temp.pem -out <pfx_without_passwd> -password pass:
base64
格式:
certutil.exe -encode <pfx file> <base64 file>
DistroLauncher-Appx/MyDistro.appxmanifest
中的Publisher=
字段,将其改为与上面的证书CN字段一致DistroLauncher-Appx/DistroLauncher-Appx.vcxproj
中的<PackageCertificateThumbprint>
字段,将其改为上面证书的指纹和证书CN
字段,获取CN
/PackageCertificateThumbprint
的方法如下:PS C:\> Get-PfxCertificate -FilePath .\DistroLauncher-Appx_TemporaryKey.pfx
Thumbprint Subject
---------- -------
asdfsadfadfs9asdfasdfsadfE1FC8AC90C26DE1 CN=xxxadsfasdfsadf
setting->secrets->actions->new secrets
,创建以下secrets$fileContentBytes = get-content 'YOURFILEPATH.pfx' -Encoding Byte
[System.Convert]::ToBase64String($fileContentBytes)
setting->secrets->actions->new secrets
,创建以下secretsAZURE这几个变量,请参考这里的步骤生成 SIGN_CERT请参考上面的步骤
修改后,通过点击actioin
中的run workflow
就能生成对应的WSL软件包(如果没有开发者账号或不期望发布到应用商店,Should we upload the appxbundle to the store
这个参数请输入no
,否则输入yes
),对应任务的summary页面中,可以下载所有生成的artifacts
,其中rootfs-xxx
是用于制作WSL的文件系统,siteload-xxx
是可以直接通过双击安装的app软件包,storeupload-
则是用于上传到微软商店的app软件包
注意:本仓库的脚本只能更新已有应用的提交,因此新创建的应用需要人工进行第一次提交,可以参考如何人工提交
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型