mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-06-02 22:31:33 +08:00
Merge branch 'master' into feature/1.8.0
This commit is contained in:
59
.github/workflows/main.yml
vendored
Normal file
59
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
# .github/workflows/release.yml
|
||||||
|
name: Build Desktop App (Python Backend + Tauri Frontend)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*' # 发布 tag 时触发
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [macos-latest, ubuntu-latest, windows-latest]
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.platform }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
# 设置 Python 环境
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
|
||||||
|
# 安装 Python 依赖并执行你的 build.sh
|
||||||
|
- name: Install Python dependencies & Build backend
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r backend/requirements.txt
|
||||||
|
chmod +x backend/build.sh
|
||||||
|
./backend/build.sh
|
||||||
|
|
||||||
|
# 设置 Node 环境 + 安装前端依赖
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
|
||||||
|
- name: Enable Corepack + Install pnpm
|
||||||
|
run: |
|
||||||
|
corepack enable
|
||||||
|
pnpm install
|
||||||
|
|
||||||
|
# 设置 Rust 环境
|
||||||
|
- name: Set up Rust
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
|
# 打包 Tauri 应用
|
||||||
|
- name: Build Tauri App
|
||||||
|
run: pnpm tauri build
|
||||||
|
|
||||||
|
# 可选:上传构建产物
|
||||||
|
- name: Upload Desktop Bundle
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: app-${{ matrix.platform }}
|
||||||
|
path: src-tauri/target/release/bundle/
|
||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
FormLabel,
|
FormLabel,
|
||||||
FormMessage,
|
FormMessage,
|
||||||
} from '@/components/ui/form.tsx'
|
} from '@/components/ui/form.tsx'
|
||||||
import { useEffect } from 'react'
|
import { useEffect,useState } from 'react'
|
||||||
import { useForm, useWatch } from 'react-hook-form'
|
import { useForm, useWatch } from 'react-hook-form'
|
||||||
import { zodResolver } from '@hookform/resolvers/zod'
|
import { zodResolver } from '@hookform/resolvers/zod'
|
||||||
import { z } from 'zod'
|
import { z } from 'zod'
|
||||||
@@ -121,7 +121,8 @@ const CheckboxGroup = ({
|
|||||||
/* -------------------- 主组件 -------------------- */
|
/* -------------------- 主组件 -------------------- */
|
||||||
const NoteForm = () => {
|
const NoteForm = () => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
const [isUploading, setIsUploading] = useState(false)
|
||||||
|
const [uploadSuccess, setUploadSuccess] = useState(false)
|
||||||
/* ---- 全局状态 ---- */
|
/* ---- 全局状态 ---- */
|
||||||
const { addPendingTask, currentTaskId, setCurrentTask, getCurrentTask, retryTask } =
|
const { addPendingTask, currentTaskId, setCurrentTask, getCurrentTask, retryTask } =
|
||||||
useTaskStore()
|
useTaskStore()
|
||||||
@@ -191,12 +192,19 @@ const NoteForm = () => {
|
|||||||
const handleFileUpload = async (file: File, cb: (url: string) => void) => {
|
const handleFileUpload = async (file: File, cb: (url: string) => void) => {
|
||||||
const formData = new FormData()
|
const formData = new FormData()
|
||||||
formData.append('file', file)
|
formData.append('file', file)
|
||||||
|
setIsUploading(true)
|
||||||
|
setUploadSuccess(false)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const data = await uploadFile(formData)
|
|
||||||
cb(data.url)
|
const data = await uploadFile(formData)
|
||||||
|
cb(data.url)
|
||||||
|
setUploadSuccess(true)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('上传失败:', err)
|
console.error('上传失败:', err)
|
||||||
message.error('上传失败,请重试')
|
message.error('上传失败,请重试')
|
||||||
|
} finally {
|
||||||
|
setIsUploading(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -341,10 +349,16 @@ const NoteForm = () => {
|
|||||||
input.click()
|
input.click()
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<p className="text-center text-sm text-gray-500">
|
{isUploading ? (
|
||||||
拖拽文件到这里上传 <br />
|
<p className="text-center text-sm text-blue-500">上传中,请稍候…</p>
|
||||||
<span className="text-xs text-gray-400">或点击选择文件</span>
|
) : uploadSuccess ? (
|
||||||
</p>
|
<p className="text-center text-sm text-green-500">上传成功!</p>
|
||||||
|
) : (
|
||||||
|
<p className="text-center text-sm text-gray-500">
|
||||||
|
拖拽文件到这里上传 <br />
|
||||||
|
<span className="text-xs text-gray-400">或点击选择文件</span>
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export default function AboutPage() {
|
|||||||
height={50}
|
height={50}
|
||||||
className="rounded-lg"
|
className="rounded-lg"
|
||||||
/>
|
/>
|
||||||
<h1 className="text-4xl font-bold">BiliNote v1.7.4</h1>
|
<h1 className="text-4xl font-bold">BiliNote v1.7.5</h1>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-muted-foreground mb-6 text-xl italic">
|
<p className="text-muted-foreground mb-6 text-xl italic">
|
||||||
AI 视频笔记生成工具 让 AI 为你的视频做笔记
|
AI 视频笔记生成工具 让 AI 为你的视频做笔记
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="./doc/icon.svg" alt="BiliNote Banner" width="50" height="50" />
|
<img src="./doc/icon.svg" alt="BiliNote Banner" width="50" height="50" />
|
||||||
</p>
|
</p>
|
||||||
<h1 align="center" > BiliNote v1.7.4</h1>
|
<h1 align="center" > BiliNote v1.7.5</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p align="center"><i>AI 视频笔记生成工具 让 AI 为你的视频做笔记</i></p>
|
<p align="center"><i>AI 视频笔记生成工具 让 AI 为你的视频做笔记</i></p>
|
||||||
@@ -26,8 +26,8 @@ BiliNote 是一个开源的 AI 视频笔记助手,支持通过哔哩哔哩、Y
|
|||||||
## 📝 使用文档
|
## 📝 使用文档
|
||||||
详细文档可以查看[这里](https://docs.bilinote.app/)
|
详细文档可以查看[这里](https://docs.bilinote.app/)
|
||||||
|
|
||||||
|
## 体验地址
|
||||||
|
可以通过访问 [这里](https://www.bilinote.app/) 进行体验,速度略慢,不支持长视频。
|
||||||
## 📦 Windows 打包版
|
## 📦 Windows 打包版
|
||||||
本项目提供了 Windows 系统的 exe 文件,可在[release](https://github.com/JefferyHcool/BiliNote/releases/tag/v1.1.1)进行下载。**注意一定要在没有中文路径的环境下运行。**
|
本项目提供了 Windows 系统的 exe 文件,可在[release](https://github.com/JefferyHcool/BiliNote/releases/tag/v1.1.1)进行下载。**注意一定要在没有中文路径的环境下运行。**
|
||||||
|
|
||||||
@@ -121,7 +121,7 @@ sudo apt install ffmpeg
|
|||||||
- BiliNote 交流QQ群:785367111
|
- BiliNote 交流QQ群:785367111
|
||||||
- BiliNote 交流微信群:
|
- BiliNote 交流微信群:
|
||||||
|
|
||||||
<img src="https://common-1304618721.cos.ap-chengdu.myqcloud.com/20250604202557.png" alt="wechat" style="zoom:33%;" />
|
<img src="https://common-1304618721.cos.ap-chengdu.myqcloud.com/20250608111120288.png" alt="wechat" style="zoom:33%;" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user