由于Freebsd的官方pkg倉庫暫時(shí)缺少vscode,freshport顯示還在和electron22進(jìn)行適配,導(dǎo)致用戶需要使用ports自行編譯vscode,由于electron的版本問題比較復(fù)雜,構(gòu)建過程是比較曲折的。

君光傳訊經(jīng)過幾天的努力,終于編譯出vscode 1.81.1_2 適配 electron25 的版本,用戶可以直接使用君光的倉庫地址安裝vscode。

操作步驟如下:

使用root用戶,

編輯:

/etc/pkg/FreeBSD.conf

默認(rèn)的配置后,加上:

jgcx : {

url : “http://www.wxbfxh.cn/freebsd”,

mirror_type: “none”,

signature_type: “none”,

enabled: yes

}

保存后,

pkg update 更新,

pkg install vscode

就可以安裝了。