Skip to content

Commit

Permalink
chore: add MacOS pkg installer (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan authored and irfanpena committed Jun 26, 2024
1 parent 65a5d39 commit 1dba491
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
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

0 comments on commit 1dba491

Please sign in to comment.