# 小录同学 **Repository Path**: linchuxiong/recording-students ## Basic Information - **Project Name**: 小录同学 - **Description**: 一个由electron和vue3制作的录屏app,录制的视频文件保存在本地(A screen recording software produced by electron and Vue3, and the recorded video files are saved locally) - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-13 - **Last Updated**: 2022-11-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 环境 - vue3 + js + electron@21.2.1 - 打包工具 vue add electron-builder ### 问题1 - vue内部使用ipcRenderer 必须为window.require ### 问题2 白屏 - 首先改为路由哈希模式 - 然后就是加载路径的问题 - this.win.loadURL(`file://${__dirname}/index.html/#/launchPage`); 使用files\https\localhost才额能获取到媒体流 ### tray显示: - 生产环境:打包__dirname指向app.asar/.... 使用app.asar替换 - 开发环境:__dirname指向的是dist_electron/ ### vue.config.js - 配置的图标路径 在打包过程就确定了 因此不受__dirname影响 ### 使用 - 本地serve : npm run electron:serve - 打包为app : npm run electron:build ### 改进:移动 + 声音 + 进度 + 小球隐藏 + serve多开报错