# invoice **Repository Path**: ranjing/invoice ## Basic Information - **Project Name**: invoice - **Description**: 一个现代化的桌面批量打印应用 支持 macOS 和 Windows | 基于 PySide6 开发 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-11 - **Last Updated**: 2025-12-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 批量打印工具
**一个现代化的桌面批量打印应用**
支持 macOS 和 Windows | 基于 PySide6 开发
[快速开始](docs/快速开始.md) • [查看文档](docs/) • [报告问题](https://gitee.com/ranjing/invoice/issues)
## 💻 系统要求
| 系统 | 最低版本 | Python | 备注 |
|---------|--------|--------|------------|
| macOS | 10.14+ | 3.9+ | 推荐 3.11 |
| Windows | 10/11 | 3.9+ | 需要 pywin32 |
## 📖 文档
- [快速开始](docs/快速开始.md) - 5 分钟上手
- [macOS 打包](docs/macOS打包说明.md) - 打包 DMG 安装包
- [Windows 打包](docs/Windows打包说明.md) - 打包 EXE 程序
- [跨平台打包](docs/跨平台打包指南.md) - 多平台打包方案
- [项目结构](docs/项目结构.md) - 代码组织说明
## 🛠️ 开发
### 安装依赖
```bash
pip install -r requirements.txt
```
### 运行测试
```bash
# 诊断打印机
python tools/check_printer.py
# 测试图标
python tools/test_icon.py
```
### 打包应用
**macOS**:
```bash
cd scripts/macos
./build_dmg.sh
```
**Windows**:
```cmd
cd scripts\windows
build_exe.bat
```
## 🤝 参与贡献
欢迎提交 Pull Request!
请阅读[贡献指南](CONTRIBUTING.md)了解详情。
## 📝 更新日志
查看[CHANGELOG.md](CHANGELOG.md)了解版本更新内容。
## ❓ 常见问题
**Q: 为什么有两个版本的代码?**
- A: macOS 和 Windows 的打印机管理方式完全不同,分开维护更稳定。
**Q: Windows 版本找不到打印机?**
- A: 确保 Python >= 3.9,安装 `pywin32`:`pip install pywin32`
**Q: macOS 应用打不开?**
- A: 右键点击 → 打开 → 仍要打开
更多问题查看[快速开始](docs/快速开始.md)
## 📄 开源协议
[MIT License](LICENSE) © 2024
## 🙏 致谢
- [PySide6](https://www.qt.io/qt-for-python) - Qt for Python
- [PyInstaller](https://www.pyinstaller.org/) - 应用打包
- [Pillow](https://python-pillow.org/) - 图像处理
---