|
40 | 40 | target: x86_64-unknown-linux-gnu |
41 | 41 | - os: ubuntu-latest |
42 | 42 | target: aarch64-unknown-linux-gnu |
43 | | - - os: macOS-latest |
| 43 | + - os: macos-latest |
44 | 44 | - os: windows-latest |
45 | 45 |
|
46 | 46 | runs-on: ${{ matrix.os }} |
@@ -130,9 +130,8 @@ jobs: |
130 | 130 | --icon "Psst.app" 150 160 \ |
131 | 131 | --hide-extension "Psst.app" \ |
132 | 132 | --app-drop-link 450 160 \ |
133 | | - --no-internet-enable \ |
134 | 133 | "Psst.dmg" \ |
135 | | - "target/release/bundle/osx/Psst.app" |
| 134 | + "../target/release/bundle/osx/Psst.app" |
136 | 135 | working-directory: psst-gui |
137 | 136 |
|
138 | 137 | - name: Upload macOS DMG |
@@ -301,33 +300,28 @@ jobs: |
301 | 300 | with: |
302 | 301 | path: artifacts |
303 | 302 |
|
304 | | - - name: Prepare Linux Release Assets |
305 | | - run: | |
306 | | - if [ -f "artifacts/psst-x86_64-unknown-linux-gnu/psst" ]; then |
307 | | - mv "artifacts/psst-x86_64-unknown-linux-gnu/psst" "artifacts/psst-linux-x86_64" && \ |
308 | | - rmdir "artifacts/psst-x86_64-unknown-linux-gnu" |
309 | | - fi |
310 | | - if [ -f "artifacts/psst-aarch64-unknown-linux-gnu/psst" ]; then |
311 | | - mv "artifacts/psst-aarch64-unknown-linux-gnu/psst" "artifacts/psst-linux-aarch64" && \ |
312 | | - rmdir "artifacts/psst-aarch64-unknown-linux-gnu" |
313 | | - fi |
314 | | -
|
315 | 303 | - name: Prepare Release Body Data |
316 | 304 | id: release_data |
317 | 305 | run: | |
318 | 306 | echo "CURRENT_DATE_STR=$(date)" >> $GITHUB_ENV |
319 | 307 |
|
320 | | - - name: Prepare All Release Assets |
| 308 | + - name: Prepare Release Assets |
321 | 309 | id: prep_assets |
322 | 310 | run: | |
323 | | - V="${{ env.RELEASE_VERSION }}" |
324 | | - mv artifacts/Psst.dmg/Psst.dmg "artifacts/Psst-${V}.dmg" |
325 | | - mv artifacts/Psst.exe/psst-gui.exe "artifacts/Psst-${V}.exe" |
326 | | - mv artifacts/psst-linux-x86_64 "artifacts/psst-linux-x86_64-${V}" |
327 | | - mv artifacts/psst-linux-aarch64 "artifacts/psst-linux-aarch64-${V}" |
328 | | - mv artifacts/psst-deb-amd64/psst-amd64.deb "artifacts/psst-amd64-${V}.deb" |
329 | | - mv artifacts/psst-deb-arm64/psst-arm64.deb "artifacts/psst-arm64-${V}.deb" |
330 | | - ls -R artifacts |
| 311 | + set -e |
| 312 | + mkdir -p artifacts_final |
| 313 | +
|
| 314 | + find artifacts -type f -name 'Psst.dmg' -exec mv {} artifacts_final/Psst.dmg \; |
| 315 | + find artifacts -type f -name 'psst-gui.exe' -exec mv {} artifacts_final/Psst.exe \; |
| 316 | + find artifacts -type f -name 'psst-amd64.deb' -exec mv {} artifacts_final/psst-amd64.deb \; |
| 317 | + find artifacts -type f -name 'psst-arm64.deb' -exec mv {} artifacts_final/psst-arm64.deb \; |
| 318 | +
|
| 319 | + find artifacts -type f -name 'psst' -path '*/psst-x86_64-unknown-linux-gnu/*' -exec mv {} artifacts_final/psst-linux-x86_64 \; |
| 320 | + find artifacts -type f -name 'psst' -path '*/psst-aarch64-unknown-linux-gnu/*' -exec mv {} artifacts_final/psst-linux-aarch64 \; |
| 321 | +
|
| 322 | + rm -rf artifacts |
| 323 | + mv artifacts_final artifacts |
| 324 | + ls -l artifacts/ |
331 | 325 |
|
332 | 326 | - name: Create Main Release |
333 | 327 | uses: softprops/action-gh-release@v2 |
|
0 commit comments