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

Commit 2f32dc5

Browse files
authored
Add Installer for linux (#780)
Co-authored-by: Hien To <tominhhien97@gmail.com>
1 parent d815feb commit 2f32dc5

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/cortex-build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,16 @@ jobs:
422422
cp cortex installer/cortex
423423
pkgbuild --identifier ai.cortex.pkg --install-location ./usr/local/bin/ --root ./installer cortex-installer.pkg
424424
425+
- name: Create MacOS PKG Installer
426+
if: runner.os == 'Linux'
427+
run: |
428+
cd cortex-js
429+
mkdir -p cortexso/DEBIAN
430+
mkdir -p cortexso/usr/local/bin
431+
sed "s/Version:/Version: ${{ needs.create-draft-release.outputs.version }}/g" control.template > cortexso/DEBIAN/control
432+
cp cortex cortexso/usr/local/bin/cortex
433+
dpkg-deb --build cortexso
434+
425435
- name: Compile .ISS to .EXE Installer
426436
uses: Minionguyjpro/Inno-Setup-Action@v1.2.2
427437
if: runner.os == 'Windows'
@@ -463,6 +473,14 @@ jobs:
463473
name: cortex-installer-${{ matrix.os }}-${{ matrix.name }}
464474
path: |
465475
./cortex-js/setup.exe
476+
477+
- name: Upload Linux Installer
478+
if: runner.os == 'Linux'
479+
uses: actions/upload-artifact@v2
480+
with:
481+
name: cortex-installer-${{ matrix.os }}-${{ matrix.name }}
482+
path: |
483+
./cortex-js/cortexso.deb
466484
467485
- name: Upload MacOS Installer
468486
if: runner.os == 'macOS'
@@ -492,6 +510,16 @@ jobs:
492510
asset_name: cortex-${{ needs.create-draft-release.outputs.version }}-${{ matrix.name }}-${{ matrix.os }}.tar.gz
493511
asset_content_type: application/gzip
494512

513+
- uses: actions/upload-release-asset@v1.0.1
514+
if: runner.os == 'Linux'
515+
env:
516+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
517+
with:
518+
upload_url: ${{ needs.create-draft-release.outputs.upload_url }}
519+
asset_path: ./cortex-js/cortexso.deb
520+
asset_name: cortex-installer-${{ needs.create-draft-release.outputs.version }}-${{ matrix.name }}-${{ matrix.os }}.deb
521+
asset_content_type: application/gzip
522+
495523
update_release_draft:
496524
needs: [build-and-test, build-cortex-single-binary]
497525
permissions:

cortex-js/control.template

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Package: cortexso
2+
Version:
3+
Section: base
4+
Priority: optional
5+
Architecture: amd64
6+
Depends: openmpi-bin,libopenmpi-dev
7+
Maintainer: Homebrew Pte Ltd <service@jan.ai>
8+
Description: Cortex
9+
Cortex is an OpenAI-compatible AI engine that developers can use to build LLM apps. It is packaged with a Docker-inspired command-line interface and client libraries. It can be used as a standalone server or imported as a library.

0 commit comments

Comments
 (0)