add HybridOS编译, update npm
This commit is contained in:
parent
6f938cb60e
commit
f8ced0852d
|
@ -0,0 +1,36 @@
|
||||||
|
#### 前提条件
|
||||||
|
|
||||||
|
- ubuntu18.04
|
||||||
|
|
||||||
|
- minigui
|
||||||
|
|
||||||
|
```
|
||||||
|
# 0. 准备
|
||||||
|
sudo apt install git gcc binutils autoconf libtool make cmake pkg-config # 工具
|
||||||
|
sudo apt install libgtk2.0-dev libjpeg-dev libpng-dev libfreetype6-dev libsqlite3-dev libxml2-dev libssl1.0-dev # 库
|
||||||
|
|
||||||
|
# 1. 获取编译脚本
|
||||||
|
git clone https://github.com/VincentWei/build-minigui-4.0.git
|
||||||
|
|
||||||
|
# 2. 获取源代码
|
||||||
|
cd build-minigui-4.0
|
||||||
|
./fetch-all.sh # 在config.sh修改"git@"为“https://”,且把"VincentWei/"里的反斜杠去掉
|
||||||
|
|
||||||
|
# 3. 编译工具和第三方库
|
||||||
|
./build-deps.sh
|
||||||
|
# 在编译harfbuzz出错,提示没有"ragel",需要"sudo apt install ragel"
|
||||||
|
|
||||||
|
# 4. 编译全部代码
|
||||||
|
./build-all.sh
|
||||||
|
|
||||||
|
# 5. 运行显示程序
|
||||||
|
sudo ldconfig # 刷新共享库的缓存
|
||||||
|
mguxdemo # 界面闪退,提示"SQLITE_OK == ret"错误。
|
||||||
|
|
||||||
|
# 6. 更新与重新安装
|
||||||
|
./update-all.sh # 更新
|
||||||
|
./clean-build-all.sh # 重新安装
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -8,3 +8,11 @@ Node JavaScript平台的包管理器
|
||||||
npm <command> [args]
|
npm <command> [args]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### 命令
|
||||||
|
|
||||||
|
```
|
||||||
|
i, install # 安装包
|
||||||
|
s, se, search # 查询包
|
||||||
|
help # 帮助信息
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue