Skip to content

如何在 Windows WSL 中使用 lzc-cli

  1. 关闭 windows 中的懒猫微服客户端

  2. 在 WSL 中安装懒猫微服 linux 客户端 (我这里以 Ubuntu 为例)

sudo apt install zenity zstd
sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev

/bin/bash -c "$(curl -fsSL https://dl.lazycat.cloud/client/desktop/linux-install)"
sudo apt install zenity zstd
sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev

/bin/bash -c "$(curl -fsSL https://dl.lazycat.cloud/client/desktop/linux-install)"
  1. 启动懒猫微服客户端
~/.local/share/lzc-client-desktop/lzc-client-desktop
~/.local/share/lzc-client-desktop/lzc-client-desktop
  1. 输入设备名和密码登录懒猫微服设备

  2. 安装 nodejs (我这里使用 nvm 安装) 以及 lzc-cli

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

echo 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"' >> ~/.bashrc
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc

nvm install v20
nvm use v20
npm install -g lzc-cli
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

echo 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"' >> ~/.bashrc
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc

nvm install v20
nvm use v20
npm install -g lzc-cli
  1. 使用 lzc-cli 构建 lpk 应用以及安装 lpk
lzc-cli project build
lzc-cli app install cloud.lazycat.app.demo-v0.0.2.lpk
lzc-cli project build
lzc-cli app install cloud.lazycat.app.demo-v0.0.2.lpk
  1. 尽情玩耍吧,上架 lpk 应用可以查看 发布自己的第一个应用