Skip to content

Commit

Permalink
Add Installer for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
hiento09 committed Jun 26, 2024
1 parent d815feb commit b80d339
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/cortex-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,16 @@ jobs:
cp cortex installer/cortex
pkgbuild --identifier ai.cortex.pkg --install-location ./usr/local/bin/ --root ./installer cortex-installer.pkg
- name: Create MacOS PKG Installer
if: runner.os == 'Linux'
run: |
cd cortex-js
mkdir -p cortexso/DEBIAN
mkdir -p cortexso/usr/local/bin
sed "s/Version:/Version: ${{ needs.create-draft-release.outputs.version }}/g" control.template > cortexso/DEBIAN/control
cp cortex cortexso/usr/local/bin/cortex
dpkg-deb --build cortexso
- name: Compile .ISS to .EXE Installer
uses: Minionguyjpro/[email protected]
if: runner.os == 'Windows'
Expand Down Expand Up @@ -463,6 +473,14 @@ jobs:
name: cortex-installer-${{ matrix.os }}-${{ matrix.name }}
path: |
./cortex-js/setup.exe
- name: Upload Linux Installer
if: runner.os == 'Linux'
uses: actions/upload-artifact@v2
with:
name: cortex-installer-${{ matrix.os }}-${{ matrix.name }}
path: |
./cortex-js/cortexso.deb
- name: Upload MacOS Installer
if: runner.os == 'macOS'
Expand Down Expand Up @@ -492,6 +510,16 @@ jobs:
asset_name: cortex-${{ needs.create-draft-release.outputs.version }}-${{ matrix.name }}-${{ matrix.os }}.tar.gz
asset_content_type: application/gzip

- uses: actions/[email protected]
if: runner.os == 'Linux'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-draft-release.outputs.upload_url }}
asset_path: ./cortex-js/cortexso.deb
asset_name: cortex-installer-${{ needs.create-draft-release.outputs.version }}-${{ matrix.name }}-${{ matrix.os }}.deb
asset_content_type: application/gzip

update_release_draft:
needs: [build-and-test, build-cortex-single-binary]
permissions:
Expand Down
9 changes: 9 additions & 0 deletions cortex-js/control.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Package: cortexso
Version:
Section: base
Priority: optional
Architecture: amd64
Depends: openmpi-bin,libopenmpi-dev
Maintainer: Homebrew Pte Ltd <[email protected]>
Description: Cortex
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 comments on commit b80d339

Please sign in to comment.