Skip to content

Commit 2413b84

Browse files
committed
Fix build output path
1 parent 1d39f8c commit 2413b84

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ jobs:
2121
run: |
2222
# 显示工作目录
2323
pwd
24+
# 创建构建目录
25+
mkdir -p build
2426
# 构建应用
25-
xcodebuild -scheme AutoMessage -configuration Release clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
27+
xcodebuild -scheme AutoMessage -configuration Release clean build -derivedDataPath build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
2628
# 列出构建目录内容
27-
ls -la
28-
# 查找 .app 文件
29-
find . -name "*.app"
29+
ls -la build
3030
# 创建目标目录
3131
mkdir -p build/AutoMessage
32-
# 复制应用(使用找到的实际路径)
33-
cp -r ./DerivedData/AutoMessage/Build/Products/Release/AutoMessage.app build/AutoMessage/
32+
# 复制应用
33+
cp -r build/Build/Products/Release/AutoMessage.app build/AutoMessage/
3434
3535
- name: Create ZIP
3636
run: |

0 commit comments

Comments
 (0)