diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a4a27e63..dbef9db1 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -14,11 +14,14 @@ jobs: fail-fast: false matrix: include: - - { label: windows-latest, os: Windows, arch: x86_64, type: msi } - - { label: macos-13, os: macOS, arch: x86_64, type: dmg } - - { label: macos-13, os: macOS, arch: x86_64, type: pkg } - - { label: macos-latest, os: macOS, arch: aarch64, type: dmg } - - { label: macos-latest, os: macOS, arch: aarch64, type: pkg } + - { label: windows-latest, os: Windows, arch: x86_64, type: msi } + - { label: windows-latest, os: Windows, arch: x86_64, type: app-image } + - { label: macos-13, os: macOS, arch: x86_64, type: dmg } + - { label: macos-13, os: macOS, arch: x86_64, type: pkg } + - { label: macos-13, os: macOS, arch: x86_64, type: app-image } + - { label: macos-latest, os: macOS, arch: aarch64, type: dmg } + - { label: macos-latest, os: macOS, arch: aarch64, type: pkg } + - { label: macos-latest, os: macOS, arch: aarch64, type: app-image } steps: - name: Checkout MiniLPA uses: actions/checkout@v4 @@ -54,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - type: [ deb, rpm ] + type: [ deb, rpm, app-image ] wayland: [ true, false ] include: - os: Linux @@ -79,7 +82,7 @@ jobs: - name: Build Native Executable shell: pwsh run: | - ./scripts/Build.ps1 -NativeExecutable -NativeExecutableType ${{ matrix.type }} -NativeWayland:$${{ matrix.wayland }} -GithubToken ${{ secrets.GH_TOKEN }} + ./scripts/Build.ps1 -NativeExecutable -NativeExecutableType ${{ matrix.type }} -NativeWayland:$${{ matrix.wayland }} -GithubToken ${{ secrets.GITHUB_TOKEN }} - name: Get Short Commit Id shell: pwsh diff --git a/scripts/Build.ps1 b/scripts/Build.ps1 index 66ef9919..487eec9f 100644 --- a/scripts/Build.ps1 +++ b/scripts/Build.ps1 @@ -81,9 +81,9 @@ if ($NativeWayland) if ($NativeExecutableType -eq 'app-image') { - $AppImageFolderPath = "$DistFolderPath/MiniLPA" + $AppImageFolderPath = "$DistFolderPath/MiniLPA*" Compress-Archive -Path "$AppImageFolderPath/*" -DestinationPath "$DistFolderPath/$Name.zip" -Force - Remove-Item -Path $AppImageFolderPath -Recurse -Force + Get-ChildItem -Path $DistFolderPath -Directory | Where-Object { $_.Name -like 'MiniLPA*' } | Remove-Item -Recurse -Force } else {