ubuntu20.04中构建Linux-x64和Linux-arm64版本tailchat客户端步骤 || = Steps to build Linux-x64 and Linux-arm64 version tailchat client in ubuntu20.04

Open
#293 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
linux, typescript, ubuntu

Research direction

Start in the client/desktop project and review the existing documentation and package scripts for the yarn, build, and Linux packaging commands mentioned here. Verify the amd64 and arm64 steps on Ubuntu 20.04, including the release/build output path; the documentation is done when another user can follow it to produce and install both deb packages.

Written by the indexing model from the issue text.

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.debTailchat-<版本号>-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. Installqemu-user-staticfirst to simulate thearm64` 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!

Dominant language
TypeScript
Stars
3.6k
Forks
398
Avg merge
1h 14m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from msgbyte/tailchat

All issues in msgbyte/tailchat

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.