Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#293 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
48/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
linux, typescript, ubuntu

Direzione di ricerca

Inizia nel progetto client/desktop e rivedi la documentazione esistente e gli script dei package per i comandi yarn, build e di packaging Linux menzionati qui. Verifica i passaggi amd64 e arm64 su Ubuntu 20.04, incluso il percorso di output di release/build; la documentazione è completa quando un altro utente può seguirla per produrre e installare entrambi i pacchetti deb.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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!

Lingua principale
TypeScript
Stelle
3.6k
Fork
398
Merge medio
1h 14m
PR unite (30g)
2

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di msgbyte/tailchat

Tutte le issue di msgbyte/tailchat

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.