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

chore: add MacOS pkg installer #774

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
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
27 changes: 25 additions & 2 deletions .github/workflows/cortex-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,14 @@ jobs:
cd cortex-js
make codesign CODE_SIGN=true DEVELOPER_ID="${{ secrets.DEVELOPER_ID }}"

- name: Create MacOS PKG Installer
if: runner.os == 'macOS'
run: |
cd cortex-js
mkdir installer
cp cortex installer/cortex
pkgbuild --identifier ai.cortex.pkg --install-location ./usr/local/bin/ --root ./installer cortex-installer.pkg

- name: Compile .ISS to .EXE Installer
uses: Minionguyjpro/[email protected]
if: runner.os == 'Windows'
Expand Down Expand Up @@ -447,11 +455,26 @@ jobs:
path: |
./cortex-js/cortex
./cortex-js/cortex.exe

- name: Upload Windows Installer
if: runner.os == 'Windows'
uses: actions/upload-artifact@v2
with:
name: cortex-installer-${{ matrix.os }}-${{ matrix.name }}
path: |
./cortex-js/setup.exe

- name: Upload MacOS Installer
if: runner.os == 'macOS'
uses: actions/upload-artifact@v2
with:
name: cortex-installer-${{ matrix.os }}-${{ matrix.name }}
path: |
./cortex-js/cortex-installer.pkg

- name: Upload Cortex Windows Installer
- name: Upload Cortex Installer
uses: actions/[email protected]
if: runner.os == 'Windows'
if: runner.os != 'Linux'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
1 change: 1 addition & 0 deletions cortex-js/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ else ifeq ($(shell uname -s),Linux)
else
@chmod +x cortex;
tar -czvf cortex.tar.gz cortex;
tar -czvf cortex-installer.tar.gz cortex-installer.pkg;
endif


Expand Down
Loading