Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create macOS installer #113

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]
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/[email protected]
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/[email protected]
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