-
Notifications
You must be signed in to change notification settings - Fork 371
Description
1.环境准备
确保开发环境安装了必要的工具和依赖,以下是 Ubuntu 系统下的安装命令:
sudo apt update
sudo apt install -y yarn nodejs npm build-essential fakeroot libgtk-3-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
2. 安装依赖
cd tailchat-1.11.10/client/desktop
yarn
3. 构建项目
运行以下命令构建项目:
yarn build
4. 生成 deb`包
生成 amd64 架构的 deb
包
yarn package:nodebug --linux deb --x64
生成 arm64 架构的 deb
包
若要构建 arm64
架构的包,在非 arm64
环境下可借助交叉编译工具。先安装 qemu-user-static
来模拟 arm64
环境:
sudo apt install -y qemu-user-static
yarn package:nodebug --linux deb --arm64
5. 查找生成的 deb
包
构建完成后,deb
包会生成在 ./tailchat-1.11.10/client/desktop/release/build
目录下,文件名类似 Tailchat-<版本号>-amd64.deb
和 Tailchat-<版本号>-arm64.deb
。
完整流程示例
sudo apt update
sudo apt install -y yarn nodejs npm build-essential fakeroot libgtk-3-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
git clone <项目仓库地址>
cd tailchat-1.11.10/client/desktop
yarn
yarn build
生成 amd64 架构的 deb 包
yarn package:nodebug --linux deb --x64
安装交叉编译工具(用于构建 arm64 架构)
sudo apt install -y qemu-user-static
生成 arm64 架构的 deb 包
yarn package:nodebug --linux deb --arm64
按照以上步骤操作,就能构建出适配 Ubuntu 20.04-amd64 和 Ubuntu 20.04-arm64 版本的 deb
包。
安装方法
sudo apt install ./tailchat-desktop_0.1.0_amd64.deb
此时在开始菜单会生成一个tailchat启动项,单击打开,填写服务器地址就可以使用,enjoy it!
1. Environment preparation
Make sure that the development environment has the necessary tools and dependencies installed. The following are the installation commands under the Ubuntu system:
sudo apt update
sudo apt install -y yarn nodejs npm build-essential fakeroot libgtk-3-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
2. Installation dependencies
cd tailchat-1.11.10/client/desktop
yarn
3. Build the project
Run the following command to build the project:
yarn build
4. Generate deb` package
Generate the deb
package of amd64 architecture
yarn package:nodebug --linux deb --x64
Generate the deb
package for arm64 architecture
To build a package for the arm64
architecture, you can use the cross-compilation tool in non-arm64environments. Install
qemu-user-staticfirst to simulate the
arm64` environment:
sudo apt install -y qemu-user-static
yarn package:nodebug --linux deb --arm64
5. Find the generated deb
package
After the build is completed, the deb
package will be generated in the ./tailchat-1.11.10/client/desktop/release/build
directory, with the file names similar to Tailchat-<version number>-amd64.deb
and Tailchat-<version number>-arm64.deb
.
Complete process example
sudo apt update
sudo apt install -y yarn nodejs npm build-essential fakeroot libgtk-3-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
git clone
cd tailchat-1.11.10/client/desktop
yarn
yarn build
Generate deb packages for amd64 architecture
yarn package:nodebug --linux deb --x64
Install cross-compilation tool (for building arm64 architecture)
sudo apt install -y qemu-user-static
Generate deb packages for arm64 architecture
yarn package:nodebug --linux deb --arm64
Follow the above steps to build a deb
package that is suitable for Ubuntu 20.04-amd64 and Ubuntu 20.04-arm64 versions.
Installation method
sudo apt install ./tailchat-desktop_0.1.0_amd64.deb
At this time, a tailchat startup item will be generated in the Start menu. Click Open and fill in the server address to use it. Enjoy it!