fix: 修复打印函数缺少 try 块导致 macOS 编译失败;CI 自动安装 Git bash
Deploy / build-windows (push) Failing after 14s
Deploy / build-linux-web (push) Successful in 53s
Deploy / build-macos (push) Successful in 52s
Deploy / release-deploy (push) Has been skipped

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-05-30 23:58:05 +08:00
parent d94c6b109b
commit 65e2021138
2 changed files with 11 additions and 0 deletions
@@ -54,6 +54,7 @@ Future<void> printProductLabelImpl({
String shopAddress = '',
String shopPhone = '',
}) async {
try {
final font = await _loadFont();
final doc = pw.Document();
final qrImage = pw.MemoryImage(qrBytes);
@@ -382,6 +383,7 @@ pw.Widget _sig(pw.Font font, pw.Font bold, String label) {
}
Future<void> printStockInOrderImpl(StockInOrder order) async {
try {
final font = await _loadFont();
final bold = await _loadBoldFont();