From a700cc983e82c211b4b64763138767eece0be75e Mon Sep 17 00:00:00 2001 From: Momentry Studio Date: Sat, 13 Jun 2026 17:50:02 +0800 Subject: [PATCH] Auto commit: 2026-06-13 17:50:02 --- ci-cd.sh | 6 +----- local-ci-cd.sh | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 5 deletions(-) create mode 100755 local-ci-cd.sh diff --git a/ci-cd.sh b/ci-cd.sh index 5e6d121..ce6381c 100755 --- a/ci-cd.sh +++ b/ci-cd.sh @@ -41,13 +41,9 @@ echo "✅ 桌面應用程式打包完成" # 6. 檢查輸出 echo "" echo "📂 Step 6: 檢查輸出..." -ls -lh src-tauri/target/release/bundle/ 2>/dev/null || echo "找不到 bundle 目錄" +ls -lh src-tauri/target/release/bundle/dmg/*.dmg 2>/dev/null || echo "找不到 DMG" echo "" echo "=========================================" echo " ✅ CI/CD Pipeline 完成" echo "=========================================" -echo "" -echo "輸出位置:" -echo " macOS: src-tauri/target/release/bundle/macos/" -echo " 其他: src-tauri/target/release/bundle/" diff --git a/local-ci-cd.sh b/local-ci-cd.sh new file mode 100755 index 0000000..ca8b652 --- /dev/null +++ b/local-ci-cd.sh @@ -0,0 +1,26 @@ +#!/bin/bash +set -e + +echo "=========================================" +echo " Momentry Studio Local CI/CD" +echo "=========================================" + +# 1. 提交變更 +echo "" +echo "📋 Step 1: Git 提交..." +git add . +git commit -m "Auto commit: $(date '+%Y-%m-%d %H:%M:%S')" 2>/dev/null || echo "無變更需要提交" +echo "✅ Git 提交完成" + +# 2. 執行 CI/CD +echo "" +echo "🔨 Step 2: 執行 CI/CD..." +./ci-cd.sh + +echo "" +echo "=========================================" +echo " ✅ Local CI/CD 完成" +echo "=========================================" +echo "" +echo "📂 輸出:" +ls -lh src-tauri/target/release/bundle/dmg/*.dmg 2>/dev/null || echo "找不到 DMG"