-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' | ||
|
@@ -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' | ||
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |