Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Guest-Liang/2024-25FinalProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

毕设

好像也没什么想说的,就是太麻烦了还有填一堆表格,什么甘特图什么中期目标
明明一个月就能干完的活…

commit规范

commit信息 触发action动作
apifix api版本号patch更新
apifeat api版本号minor更新
apibreaking api版本号major更新
elefix electron版本号patch更新
elefeat electron版本号minor更新
elebreaking electron版本号major更新

注意,后三个触发时会同步更新package.json中的版本号

编译

wakatime

backend, 产物在dist,开发环境python=3.12.7(2025.2.13 更新至3.12.9):

cd backend
conda activate FinalProject
pip install -r requirements.txt
python pyi_auto_pack_ci.py win (or linux)

vue前端, 产物在dist:

cd frontend
pnpm install
pnpm build-only

electron, 产物在build:

cd frontend
pnpm electron-builder --win (or --linux)

运行

windows 安装版,或者免安装版

无论哪种都需要一个控制台,所以双击启动会有一个无输出的控制台弹出,关闭就无法运行了
通过控制台启动,可以看到错误信息

ubuntu 免安装版 以0.2.1版本为例

解压tar.gz

mkdir App
tar -zxvf GuestLiangElectronApp-0.2.1.tar.gz -C ./App 

在控制台运行

cd ./App
./guestliang-electron-app --no-sandbox --disable-gpu

启动警告

You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.

正常现象,如果想解决就
windows

.\DjangoRestfulAPI.exe migrate

ubuntu

./DjangoRestfulAPI migrate

开发

后端启动

python manage.py runserver

前端启动

pnpm dev

electron启动

pnpm electron

electron错误提示

npm install electron-fix -g
electron-fix start

2024.11.7

2024 Nov 7

2025.2.14

2025 Feb 14

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •