Skip to content

Commit

Permalink
config: add ubuntu support for one-click install/config
Browse files Browse the repository at this point in the history
- #139

1. add ubuntu support
2. update readme

Signed-off-by: sunrisepeak <[email protected]>
  • Loading branch information
Sunrisepeak committed Nov 13, 2024
1 parent 3ee3ccc commit 531d06f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,15 @@ https://littlefean.github.io/2024/09/28/tauri%E9%A1%B9%E7%9B%AE%E5%9C%A8windows%

### 一键安装配置环境

如果感觉配置过程过于麻烦,可以下载xlings工具,使用xlings一键配置环境,在powershell中运行一键安装命令

```
Invoke-Expression (Invoke-Webrequest 'https://d2learn.org/xlings-install.ps1.txt' -UseBasicParsing).Content
```

然后运行指令
如果感觉配置过程过于麻烦,可以使用xlings工具一键安装并配置环境

```
xlings install
```

这个过程中可能会有弹窗,点击确认即可
> 注:
> - 目前已测试系统: [windows](https://github.com/LiRenTech/project-graph/issues/139#issuecomment-2470110723)[ubuntu](https://github.com/LiRenTech/project-graph/issues/139#issuecomment-2474507140)
> - [更多一键环境配置讨论](https://github.com/LiRenTech/project-graph/issues/139)
## 开发注意事项

Expand Down
9 changes: 8 additions & 1 deletion config.xlings
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-- step1: install xlings tools: https://github.com/d2learn/xlings
-- step2: run [xlings install], auto config project dev-environment
-- support: windows, ubuntu, ...

xname = "Project Graph"
xdeps = {
Expand All @@ -8,8 +9,14 @@ xdeps = {
nodejs = "20.17.0",
pnpm = "9.8.0",
xppcmds = {
"pnpm install",
-- https://v1.tauri.app/v1/guides/getting-started/prerequisites
-- ubuntu 22.04+
{"ubuntu", "sudo apt update"},
{"ubuntu", "sudo apt install libwebkit2gtk-4.1-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev -y"},
{"arch", "sudo pacman -Syu"},
{"arch", "sudo pacman -S --needed webkit2gtk base-devel curl wget file openssl appmenu-gtk-module gtk3 libappindicator-gtk3 librsvg libvips --noconfirm"},
--"pnpm install --registry=https://registry.npmmirror.com",
"pnpm install",
"pnpm tauri dev",
}
}

0 comments on commit 531d06f

Please sign in to comment.