Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: add ubuntu support for one-click install/config #144

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ build/
__pycache__/

keystore.properties
.xlings # xlings tools
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",
}
}