Skip to content

Commit 788aac9

Browse files
committed
fix: 删除下载的 ui 压缩包
1 parent b2897bb commit 788aac9

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/install.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,35 @@ jobs:
8282
out-file-path: "MFA"
8383
extract: true
8484

85+
- name: Clean up MFAAvalonia archive
86+
if: matrix.os != 'android'
87+
shell: bash
88+
run: |
89+
OS_NAME=""
90+
if [[ "${{ matrix.os }}" == "win" ]]; then
91+
OS_NAME="win"
92+
elif [[ "${{ matrix.os }}" == "macos" ]]; then
93+
OS_NAME="osx"
94+
elif [[ "${{ matrix.os }}" == "linux" ]]; then
95+
OS_NAME="linux"
96+
fi
97+
98+
ARCH_NAME=""
99+
if [[ "${{ matrix.arch }}" == "x86_64" ]]; then
100+
ARCH_NAME="x64"
101+
elif [[ "${{ matrix.arch }}" == "aarch64" ]]; then
102+
ARCH_NAME="arm64"
103+
fi
104+
105+
if [[ -n "$OS_NAME" && -n "$ARCH_NAME" ]]; then
106+
ARCHIVE_PATTERN="MFAAvalonia-*-${OS_NAME}-${ARCH_NAME}*"
107+
echo "Attempting to remove downloaded archive matching: ${ARCHIVE_PATTERN}"
108+
rm -f ${ARCHIVE_PATTERN}
109+
echo "Archive cleanup command executed for MFAAvalonia."
110+
else
111+
echo "OS or Arch name not determined for this matrix combination, skipping MFAAvalonia archive cleanup."
112+
fi
113+
85114
- name: Install
86115
shell: bash
87116
run: |

0 commit comments

Comments
 (0)