Skip to content

Commit 80c8a19

Browse files
committed
feat: 飞书推送链接问题修复
1 parent 0e25ea8 commit 80c8a19

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

scripts/release-notice.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
#!/bin/bash
22

33
# 判断环境和下载路径
4-
if [[ "$ENV" == "development" ]]; then
5-
MAC_URL="http://$NEXUS_HOST_PORT/repository/raw-hosted/intel-ai-pc/oadin/dist/mac/$MAC_FILE_NAME"
6-
WIN_URL="http://$NEXUS_HOST_PORT/repository/raw-hosted/intel-ai-pc/oadin/dist/win/$WIN_FILE_NAME"
4+
# if [[ "$ENV" == "development" ]]; then
5+
# MAC_URL="http://$NEXUS_HOST_PORT/repository/raw-hosted/intel-ai-pc/oadin/dist/mac/$MAC_FILE_NAME"
6+
# WIN_URL="http://$NEXUS_HOST_PORT/repository/raw-hosted/intel-ai-pc/oadin/dist/win/$WIN_FILE_NAME"
7+
# else
8+
# MAC_URL="https://oss-aipc.dcclouds.com/oadin/dist/macos/$MAC_FILE_NAME"
9+
# WIN_URL="https://oss-aipc.dcclouds.com/oadin/dist/windows/$WIN_FILE_NAME"
10+
# fi
11+
12+
# 如果$MAC_FILE_NAME和$WIN_FILE_NAME都包含test,则使用测试地址
13+
if [[ "$MAC_FILE_NAME" == *"test"* && "$WIN_FILE_NAME" == *"test"* ]]; then
14+
MAC_URL="http://10.3.70.145:32018/repository/raw-hosted/intel-ai-pc/oadin/dist/mac/$MAC_FILE_NAME"
15+
WIN_URL="http://10.3.70.145:32018/repository/raw-hosted/intel-ai-pc/oadin/dist/win/$WIN_FILE_NAME"
716
else
817
MAC_URL="https://oss-aipc.dcclouds.com/oadin/dist/macos/$MAC_FILE_NAME"
918
WIN_URL="https://oss-aipc.dcclouds.com/oadin/dist/windows/$WIN_FILE_NAME"

0 commit comments

Comments
 (0)