# wallpaper **Repository Path**: bidding-M/wallpaper ## Basic Information - **Project Name**: wallpaper - **Description**: 一款使用electron-egg框架开发的桌面端相册工具 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: dev - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 5 - **Forks**: 1 - **Created**: 2023-04-05 - **Last Updated**: 2026-06-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: electron-egg, Electron ## README # wallpaper ## 📋 介绍 项目是由 electron-egg、vue3、pinia、ts、vite 搭建的一款相册工具 ## 📚 文档 - [官方文档](https://www.kaka996.com/) ## 📋 说明 - 建议使用`npm i`安装!否则用`yarn`或`cnpm`安装不全! - 缩略图插件`sharp@0.33.1`依赖`{ node: '^18.17.0 || ^20.3.0 || >=21.0.0', libvips: '>=8.15.0' }` ## 📋 代码结构 - [目录](./directoryList.md) ## 📋 开发模式 1.启动前端服务 ```shell npm run dev-frontend ``` 2.启动后端服务 ```shell npm run dev-electron ``` 3.同时启动前后端 ```shell npm run dev ``` ## 📋 生产模式 1.构建并移动前端资源并代码加密 > move 命令移动前端资源,参数:--dist_dir 指定目录,默认 ./frontend/dist。 > move 命令会把 frontend/dist 复制到 /public/dist; 服务最终加载的是 /public/dist 前端资源。 ```shell npm run build ``` 2.预发布模式,测试功能是否正常 (prod 环境) > encrypt 命令加密代码,参数:--type=,● bytecode 字节码加密,● confusion 压缩混淆加密;● strict 先混淆加密,然后字节码加密 > 如果使用 bytecode 加密,window 区分 32 和 64 位,无法兼容运行; > encrypt 命令会把 electron/ 复制到 /public/electron ; 然后对其加密。 ```shell npm run start ``` 3.打包 ```shell # 打包时,package.json 中 build.productName 包名不要为中文,避免一些未知异常 # 打包 (windows版) npm run build-w # (64位) npm run build-w-32 # (32位) npm run build-we # # 打包 (mac版) npm run build-m # npm run build-m-arm64 # (m1芯片架构) # 打包 (linux版) npm run build-l # ``` 4.找到程序 > 目录:wallpaper/out > 临时文件:out/win-unpacked > Windows 安装包:out/wallpaper-win-1.0.1-x64.exe > Windows 免安装包:out/ee-win-3.0.1-ia32.7z > Mac 软件包:out/xxxx.dmg > Linux 软件包:out/xxx.deb ## 📋 功能说明 1. 支持新增分类、删除分类; 2. 支持根据分类上传图片,并生成缩略图; 3. 支持分类查看图片;支持模糊搜索图片; 4. 数据存储在 sqlite 数据库文件中; ## 📋 常见问题 [常见问题](https://www.kaka996.com/pages/fdceb2/)