Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit d815feb

Browse files
authored
chore: add MacOS pkg installer (#774)
1 parent 42baaea commit d815feb

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.github/workflows/cortex-build.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,14 @@ jobs:
414414
cd cortex-js
415415
make codesign CODE_SIGN=true DEVELOPER_ID="${{ secrets.DEVELOPER_ID }}"
416416
417+
- name: Create MacOS PKG Installer
418+
if: runner.os == 'macOS'
419+
run: |
420+
cd cortex-js
421+
mkdir installer
422+
cp cortex installer/cortex
423+
pkgbuild --identifier ai.cortex.pkg --install-location ./usr/local/bin/ --root ./installer cortex-installer.pkg
424+
417425
- name: Compile .ISS to .EXE Installer
418426
uses: Minionguyjpro/Inno-Setup-Action@v1.2.2
419427
if: runner.os == 'Windows'
@@ -447,11 +455,26 @@ jobs:
447455
path: |
448456
./cortex-js/cortex
449457
./cortex-js/cortex.exe
458+
459+
- name: Upload Windows Installer
460+
if: runner.os == 'Windows'
461+
uses: actions/upload-artifact@v2
462+
with:
463+
name: cortex-installer-${{ matrix.os }}-${{ matrix.name }}
464+
path: |
450465
./cortex-js/setup.exe
466+
467+
- name: Upload MacOS Installer
468+
if: runner.os == 'macOS'
469+
uses: actions/upload-artifact@v2
470+
with:
471+
name: cortex-installer-${{ matrix.os }}-${{ matrix.name }}
472+
path: |
473+
./cortex-js/cortex-installer.pkg
451474
452-
- name: Upload Cortex Windows Installer
475+
- name: Upload Cortex Installer
453476
uses: actions/upload-release-asset@v1.0.1
454-
if: runner.os == 'Windows'
477+
if: runner.os != 'Linux'
455478
env:
456479
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
457480
with:

cortex-js/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ else ifeq ($(shell uname -s),Linux)
2020
else
2121
@chmod +x cortex;
2222
tar -czvf cortex.tar.gz cortex;
23+
tar -czvf cortex-installer.tar.gz cortex-installer.pkg;
2324
endif
2425

2526

0 commit comments

Comments
 (0)