Skip to content

Commit

Permalink
[doc] 小修复
Browse files Browse the repository at this point in the history
  • Loading branch information
Borber committed Sep 5, 2023
1 parent 5d5f82c commit e51b3df
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 21 deletions.
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,9 @@

```bash
❯ .\seam.exe -l douyu -i 88080
[ {
"rate": "超清1",
"url": "http://url1"
},
{
"rate": "超清2",
"url": "http://url2"
}
]
http://url1

http://url2
```

## [详情](crates/cli/README.md)
Expand Down
13 changes: 4 additions & 9 deletions crates/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,14 @@

```bash
❯ .\seam.exe -l douyu -i 88080
[ {
"rate": "超清1",
"url": "http://url1"
},
{
"rate": "超清2",
"url": "http://url2"
}
]
http://url1

http://url2
```

- `-l` 代表平台, 目前支持的平台见下表
- `-i` 代表直播间号, 也就是直播间链接中的 `rid`
- `-a` 显示全部信息, 包括直播间标题, 主播名, 封面图等

> 因为数据具有时效性, 所以具体链接使用 `url` 进行替换
Expand Down
2 changes: 1 addition & 1 deletion crates/gui/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
}
]
}
}
}
4 changes: 2 additions & 2 deletions script/update_gui.nu
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
let lastVersion = '../crates/gui/src-tauri/tauri.conf.json' | open | get package.version
let lastVersion = ('../crates/gui/src-tauri/tauri.conf.json' | open | get package.version)
let prompt = "Last version:" ++ $lastVersion ++ "\nNew version:"
let newVersion = (input $prompt)
let newVersion = (input $prompt | str trim)
let file = '../crates/gui/src/App.tsx'
$file | open | str replace ('<div class="version">' ++ $lastVersion ++ '</div>') ('<div class="version">' ++ $newVersion ++ '</div>') | save -f $file
let file = '../crates/gui/src-tauri/Cargo.toml';
Expand Down

0 comments on commit e51b3df

Please sign in to comment.