如何创建 32 位版本的 Atom?

Jor*_* B. 7 compiling 32-bit atom

新的Atom 1.0文本编辑器现已可用。但仅限于 64 位处理器。如何创建 32 位版本?

A.B*_*.B. 11

这些说明假设您有一个 32 位系统:

sudo apt-get install build-essential git libgnome-keyring-dev fakeroot rpm libx11-dev libxkbfile-dev
Run Code Online (Sandbox Code Playgroud)

设置node.js

curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install nodejs
Run Code Online (Sandbox Code Playgroud)

克隆 Atom 存储库:

cd
git clone https://github.com/atom/atom
Run Code Online (Sandbox Code Playgroud)

如果您需要最新版本:

git fetch -p
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
Run Code Online (Sandbox Code Playgroud)

现在构建并安装:

cd atom
sudo script/build --create-debian-package
Run Code Online (Sandbox Code Playgroud)

使用sudo上面可以避免在构建过程中出现权限被拒绝的错误。此外,如果您在build命令中遇到问题,请运行sudo update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10.


或者通过 PPA 安装 Atom:

sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update
sudo apt-get install atom
Run Code Online (Sandbox Code Playgroud)