@@ -150,21 +150,19 @@ jobs:
150150 exit 1
151151 }
152152
153- - name : Collect release files
153+ - name : Collect release files from build directory
154154 run : |
155- echo "🔍 Searching for distributable files..."
156- # Create release-files directory
155+ echo "🔍 Collecting files from build directory..."
157156 mkdir -p release-files
158157
159- # Copy all distributable files (installers)
160- find . -type f \( -name "*.exe" -o -name "*.dmg" -o -name "*.AppImage" -o -name "*.zip" -o -name "*.blockmap" \) \
161- -not -path "*/node_modules/*" \
158+ # Copy everything from build directory except unpacked folders
159+ find build/ -type f \( -name "*.exe" -o -name "*.dmg" -o -name "*.AppImage" -o -name "*.zip" -o -name "*.blockmap" -o -name "*.yml" \) \
162160 -not -path "*/win-unpacked/*" \
163161 -not -path "*/linux-unpacked/*" \
164162 -not -path "*/mac-universal/*" \
165163 -exec cp {} release-files/ \;
166164
167- # Create zip files for unpacked directories
165+ # Also create zipped versions of unpacked directories
168166 if [ -d "build/win-unpacked" ]; then
169167 echo "📦 Zipping Windows unpacked directory..."
170168 cd build && zip -r ../release-files/ori-launcher-win-unpacked.zip win-unpacked/ && cd ..
@@ -180,21 +178,19 @@ jobs:
180178 cd build && zip -r ../release-files/ori-launcher-mac-unpacked.zip mac-universal/ && cd ..
181179 fi
182180
183- echo "📦 All release files collected:"
181+ echo "📦 Release files collected:"
184182 ls -la release-files/
185-
186- - name : Collect release files (Windows)
183+
184+ - name : Collect release files from build directory (Windows)
187185 if : matrix.os == 'windows-latest'
188186 shell : pwsh
189187 run : |
190- Write-Host "🔍 Searching for distributable files..."
191- # Create release-files directory
188+ Write-Host "🔍 Collecting files from build directory..."
192189 New-Item -ItemType Directory -Force -Path "release-files"
193190
194- # Copy all distributable files (installers)
195- Get-ChildItem -Recurse -Include "*.exe", "*.dmg", "*.AppImage", "*.zip", "*.blockmap" -Path . |
191+ # Copy everything from build directory except unpacked folders
192+ Get-ChildItem -Recurse -Include "*.exe", "*.dmg", "*.AppImage", "*.zip", "*.blockmap", "*.yml" -Path "build" |
196193 Where-Object {
197- $_.FullName -notmatch "node_modules" -and
198194 $_.FullName -notmatch "win-unpacked" -and
199195 $_.FullName -notmatch "linux-unpacked" -and
200196 $_.FullName -notmatch "mac-universal"
@@ -204,7 +200,7 @@ jobs:
204200 Write-Host "Copied: $($_.Name)"
205201 }
206202
207- # Create zip files for unpacked directories
203+ # Also create zipped versions of unpacked directories
208204 if (Test-Path "build\win-unpacked") {
209205 Write-Host "📦 Zipping Windows unpacked directory..."
210206 Compress-Archive -Path "build\win-unpacked\*" -DestinationPath "release-files\ori-launcher-win-unpacked.zip" -Force
@@ -220,7 +216,7 @@ jobs:
220216 Compress-Archive -Path "build\mac-universal\*" -DestinationPath "release-files\ori-launcher-mac-unpacked.zip" -Force
221217 }
222218
223- Write-Host "📦 All release files collected:"
219+ Write-Host "📦 Release files collected:"
224220 Get-ChildItem release-files/
225221
226222 - name : List final artifacts (Linux/Mac)
0 commit comments