6363 if : matrix.platform == 'macos-latest'
6464 run : npm run tauri build -- --target universal-apple-darwin
6565
66+ - name : Rename macOS artifacts
67+ if : matrix.platform == 'macos-latest'
68+ run : |
69+ echo "=== Renaming macOS artifacts to simple names ==="
70+ # Find and rename DMG files
71+ find src-tauri/target/universal-apple-darwin/release/bundle -name "*.dmg" -exec cp {} BeautifyOllama.dmg \; 2>/dev/null || echo "No DMG found in universal target"
72+ find src-tauri/target/release/bundle -name "*.dmg" -exec cp {} BeautifyOllama.dmg \; 2>/dev/null || echo "No DMG found in release target"
73+ # List what we created
74+ ls -la BeautifyOllama.dmg 2>/dev/null || echo "No BeautifyOllama.dmg created"
75+
6676 - name : Debug macOS artifacts
6777 if : matrix.platform == 'macos-latest'
6878 run : |
@@ -80,19 +90,42 @@ jobs:
8090 if : matrix.platform != 'macos-latest'
8191 run : npm run tauri build
8292
93+ - name : Rename Windows artifacts
94+ if : matrix.platform == 'windows-latest'
95+ run : |
96+ echo "=== Renaming Windows artifacts to simple names ==="
97+ # Find and rename Windows executables/installers
98+ find src-tauri/target/release/bundle -name "*.msi" -exec cp {} BeautifyOllama.msi \; 2>/dev/null || echo "No MSI found"
99+ find src-tauri/target/release/bundle -name "*.exe" -exec cp {} BeautifyOllama.exe \; 2>/dev/null || echo "No EXE found"
100+ # List what we created
101+ ls -la BeautifyOllama.* 2>/dev/null || echo "No renamed files created"
102+
103+ - name : Rename Linux artifacts
104+ if : matrix.platform == 'ubuntu-latest'
105+ run : |
106+ echo "=== Renaming Linux artifacts to simple names ==="
107+ # Find and rename Linux packages
108+ find src-tauri/target/release/bundle -name "*.deb" -exec cp {} BeautifyOllama.deb \; 2>/dev/null || echo "No DEB found"
109+ find src-tauri/target/release/bundle -name "*.AppImage" -exec cp {} BeautifyOllama.AppImage \; 2>/dev/null || echo "No AppImage found"
110+ # List what we created
111+ ls -la BeautifyOllama.* 2>/dev/null || echo "No renamed files created"
112+
83113 - name : Upload artifacts (windows only)
84114 if : matrix.platform == 'windows-latest'
85115 uses : actions/upload-artifact@v4
86116 with :
87117 name : windows-artifacts
88- path : src-tauri/target/release/bundle/
118+ path : |
119+ BeautifyOllama.*
120+ src-tauri/target/release/bundle/
89121
90122 - name : Upload artifacts (macos)
91123 if : matrix.platform == 'macos-latest'
92124 uses : actions/upload-artifact@v4
93125 with :
94126 name : macos-artifacts
95127 path : |
128+ BeautifyOllama.*
96129 src-tauri/target/universal-apple-darwin/release/bundle/
97130 src-tauri/target/release/bundle/
98131 if-no-files-found : warn
@@ -102,7 +135,9 @@ jobs:
102135 uses : actions/upload-artifact@v4
103136 with :
104137 name : linux-artifacts
105- path : src-tauri/target/release/bundle/
138+ path : |
139+ BeautifyOllama.*
140+ src-tauri/target/release/bundle/
106141
107142 create-release :
108143 needs : test-and-build
@@ -131,5 +166,8 @@ jobs:
131166 - **macOS**: .dmg file
132167 - **Linux**: .deb package or .AppImage portable app"
133168
134- # Upload all artifacts
135- find artifacts -type f \( -name "*.msi" -o -name "*.exe" -o -name "*.dmg" -o -name "*.deb" -o -name "*.AppImage" \) -exec gh release upload ${{ github.ref_name }} {} \;
169+ # Upload all artifacts with simple names first
170+ find artifacts -type f \( -name "BeautifyOllama.msi" -o -name "BeautifyOllama.exe" -o -name "BeautifyOllama.dmg" -o -name "BeautifyOllama.deb" -o -name "BeautifyOllama.AppImage" \) -exec gh release upload ${{ github.ref_name }} {} \;
171+
172+ # Upload any remaining artifacts with original names as fallback
173+ find artifacts -type f \( -name "*.msi" -o -name "*.exe" -o -name "*.dmg" -o -name "*.deb" -o -name "*.AppImage" \) ! \( -name "BeautifyOllama.*" \) -exec gh release upload ${{ github.ref_name }} {} \;
0 commit comments