由于 uniapp 离线打包每次都要打开 Android studio,很麻烦 由于公司内 uniapp 的项目太多,管理打理起来不方便,很麻烦,所以我需要本地记录 uniapp 项目的 uniappid,uniappcloud 秘钥,包名等信息 由于密钥库文件生成太过麻烦,于是我打算弄一个可视化界面脚本生成不同的测试密钥库,并且进行统一管理 由于,等我想想
0: 成功(Success) 1: 一般错误(General error) 2: 错误的用法(Misuse of shell builtins) 126: 命令不可执行(Command invoked cannot execute) 127: 命令未找到(Command not found) 128: 无效的退出参数(Invalid exit argument) 130: 脚本被用户中断(Script terminated by Control-C) 255: 退出状态超出范围(Exit status out of range)
// 以下内容都是 Github copilot 写的..
# Vite Electron uniapp 离线打包桌面程序
这是一个基于 Electron 和 Vite 的桌面应用程序项目。
## 项目结构
### 主要文件和目录
- **src/**: 源代码目录
- **package.json**: 项目配置文件,包含依赖和脚本
- **tsconfig.json**: TypeScript 配置文件
- **vite.base.config.ts**: Vite 基础配置
- **vite.main.config.ts**: Vite 主进程配置
- **vite.only.render.ts**: Vite 渲染进程配置
- **vite.preload.config.ts**: Vite 预加载脚本配置
- **vite.renderer.config.ts**: Vite 渲染器配置
## 安装
首先,克隆项目到本地:
```sh
git clone <repository-url>
cd <repository-directory>
然后,安装依赖:
npm install
启动开发服务器:
npm run start
启动渲染进程开发服务器:
npm run dev-render
构建渲染进程:
npm run build-render
打包应用程序:
npm run package
npm run start
: 启动 Electron 应用程序npm run package
: 打包应用程序npm run make
: 创建可分发的安装包npm run publish
: 发布应用程序npm run lint
: 运行 ESLint 进行代码检查npm run dev-render
: 启动渲染进程开发服务器npm run build-render
: 构建渲染进程npm run preview
: 预览生产环境构建
欢迎贡献代码!请提交 Pull Request 或报告问题。
此项目使用 MIT 许可证。
根据你的项目需求,你可以进一步修改和扩展这个 `README.md` 文件。