-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from wflixu/dev
v1.0.6
- Loading branch information
Showing
10 changed files
with
69 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,39 @@ | ||
# ICamera | ||
|
||
视频录像或直播头像 | ||
### 主界面 | ||
<img src="public/imgs/preview.jpg"/> | ||
|
||
### 配置 | ||
可以配置大小、边框、形状等参数 | ||
|
||
<img src="public/imgs/config.jpg"/> | ||
|
||
|
||
|
||
# 技术栈 | ||
|
||
Tauri + Vue 3 + TypeScript | ||
|
||
|
||
# 使用 | ||
|
||
## 下载 | ||
|
||
在 [release](https://github.com/wflixu/icamera/releases) 页面下载 | ||
|
||
<img src="public/imgs/download.jpg"/> | ||
|
||
|
||
|
||
## 本地构建 | ||
|
||
本地构建 | ||
|
||
```shell | ||
# 安装依赖 | ||
pnpm install | ||
# 构建 | ||
pnpm run tb | ||
|
||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,31 @@ | ||
import { writeFile } from 'fs/promises'; | ||
import pkg from './package.json' with { type: "json" }; | ||
import tconfig from './src-tauri/tauri.conf.json' with {type:'json'} | ||
import tconfig from './src-tauri/tauri.conf.json' with {type: 'json'} | ||
|
||
const vs=process.argv[2] | ||
const vs = process.argv[2] | ||
const nextType = process.argv[3] ?? 'patch' | ||
console.log(vs) | ||
pkg.version = vs; | ||
|
||
await writeFile('./package.json', JSON.stringify(pkg, null, 2)) | ||
|
||
|
||
tconfig.package.version = vs; | ||
tconfig.tauri.updater.endpoints = [`https://github.com/wflixu/icamera/releases/download/v${vs}/latest.json`] | ||
|
||
await writeFile('./src-tauri/tauri.conf.json', JSON.stringify(tconfig, null, 2)) | ||
const nv = nextVersion(vs, nextType); | ||
|
||
tconfig.tauri.updater.endpoints = [`https://github.com/wflixu/icamera/releases/download/v${nv}/latest.json`] | ||
|
||
await writeFile('./src-tauri/tauri.conf.json', JSON.stringify(tconfig, null, 2)) | ||
|
||
function nextVersion(vs, nt) { | ||
const arr = vs.split('.').map(item => parseInt(item)) | ||
if (nt == 'major') { | ||
return `${arr[0] + 1}.0.0` | ||
} else if (nt == 'minor') { | ||
return `${arr[0]}.${arr[1] + 1}.0` | ||
} else { | ||
return `${arr[0]}.${arr[1]}.${arr[2] + 1}` | ||
} | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters