Skip to content

Commit

Permalink
Create macOS installer (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 authored Oct 17, 2024
1 parent c0b589b commit bb9a227
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions .github/workflows/elastic-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,6 @@ jobs:
- name: Build app
run: flutter build ${{ matrix.build-option }}

- name: Create installer
if: ${{ matrix.build-option == 'windows' }}
uses: Minionguyjpro/Inno-Setup-Action@v1.2.5
with:
path: installer_setup_script.iss
options: /O+

- name: Zip release
if: ${{ matrix.build-option == 'macos' }}
run: |
Expand All @@ -142,15 +135,37 @@ jobs:
path: ${{ matrix.artifact-path }}
if-no-files-found: error

- name: Upload artifact (Windows portable)
- name: Upload windows portable
if: ${{ matrix.build-option == 'windows' }}
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact-name }}_portable
path: ${{ matrix.artifact-path }}
if-no-files-found: error

- name: Upload artifact (Windows installer)
- name: Create macOS installer
if: ${{ matrix.build-option == 'macos' }}
uses: L-Super/create-dmg-actions@v1.0.3
with:
dmg_name: build/macos/Build/Products/Release/elastic-setup
src_dir: build/macos/Build/Products/Release/elastic_dashboard.app

- name: Upload macOS installer
if: ${{ matrix.build-option == 'macos' }}
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact-name }}_installer
path: build/macos/Build/Products/Release/elastic-setup.dmg
if-no-files-found: error

- name: Create windows installer
if: ${{ matrix.build-option == 'windows' }}
uses: Minionguyjpro/Inno-Setup-Action@v1.2.5
with:
path: installer_setup_script.iss
options: /O+

- name: Upload windows installer
if: ${{ matrix.build-option == 'windows' }}
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit bb9a227

Please sign in to comment.