3939 elif [ "${{ runner.os }}" = "macOS" ]; then
4040 npm run dist:mac -- --arm64
4141 npm run dist:mac -- --x64
42+ mkdir -p dist/renamed
43+ shopt -s nullglob
44+ for file in dist/*.dmg; do
45+ if [[ "$file" == *arm64* ]]; then
46+ cp "$file" "dist/renamed/Agently Helper-mac-arm64.dmg"
47+ elif [[ "$file" == *x64* || "$file" == *x86_64* ]]; then
48+ cp "$file" "dist/renamed/Agently Helper-mac-x64.dmg"
49+ fi
50+ done
51+ shopt -u nullglob
4252 else
4353 npm run dist:linux
4454 fi
@@ -48,22 +58,23 @@ jobs:
4858 run : |
4959 ls -la tools/agently_helper/dist
5060
51- - name : Upload artifacts
61+ - name : Upload Windows installer
62+ if : runner.os == 'Windows'
5263 uses : actions/upload-artifact@v4
5364 with :
54- name : agently-helper-${{ runner.os }}
55- path : tools/agently_helper/dist/**
65+ name : agently-helper-windows-installer
66+ path : tools/agently_helper/dist/**/*.exe
5667
57- - name : Upload macOS arm64
68+ - name : Upload macOS installer
5869 if : runner.os == 'macOS'
5970 uses : actions/upload-artifact@v4
6071 with :
61- name : agently-helper-macos-arm64
62- path : tools/agently_helper/dist/**/*arm64 *.dmg
72+ name : agently-helper-macos-installer
73+ path : tools/agently_helper/dist/renamed/ *.dmg
6374
64- - name : Upload macOS x64
65- if : runner.os == 'macOS '
75+ - name : Upload Linux installer
76+ if : runner.os == 'Linux '
6677 uses : actions/upload-artifact@v4
6778 with :
68- name : agently-helper-macos-x64
69- path : tools/agently_helper/dist/**/*x64*.dmg
79+ name : agently-helper-linux-installer
80+ path : tools/agently_helper/dist/**/*.AppImage
0 commit comments