Skip to content

Commit

Permalink
Add app-image build
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiinaSekiu committed Aug 17, 2024
1 parent befc4af commit feef424
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -54,7 +57,7 @@ jobs:
strategy:
fail-fast: false
matrix:
type: [ deb, rpm ]
type: [ deb, rpm, app-image ]
wayland: [ true, false ]
include:
- os: Linux
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions scripts/Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit feef424

Please sign in to comment.