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

Commit f5e792c

Browse files
committed
Initiate template for linux installer
1 parent afe240a commit f5e792c

File tree

18 files changed

+61
-423
lines changed

18 files changed

+61
-423
lines changed

.github/workflows/nightly-build.yml

Lines changed: 0 additions & 178 deletions
This file was deleted.

.github/workflows/nightly.yml

Lines changed: 0 additions & 174 deletions
This file was deleted.

engine/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "cortex-cpp",
3-
"version": "0.0.11",
2+
"name": "cortexcpp",
3+
"version": "0.0.1",
44
"description": "Cortex-cpp is a streamlined, stateless C++ server engineered to be fully compatible with OpenAI's API, particularly its stateless functionalities",
55
"main": "./binding/index.js",
66
"types": "./binding/index.d.ts",

engine/templates/linux/control

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Package: $PACKAGE_NAME
2+
Version: $VERSION
3+
Section: base
4+
Priority: optional
5+
Architecture: amd64
6+
Depends: openmpi-bin,libopenmpi-dev
7+
Maintainer: Homebrew Computer Pte Ltd <[email protected]>
8+
Description: Cortex
9+
Cortex is a C++ AI engine that comes with a Docker-like command-line interface and client libraries. It supports running AI models using ONNX, TensorRT-LLM, and llama.cpp engines. Cortex can function as a standalone server or be integrated as a library.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
PACKAGE_NAME=$1
2+
VERSION=$2
3+
SOURCE_BINARY_PATH=$3
4+
DESTINATION_BINARY_NAME=$4
5+
6+
mkdir -p $PACKAGE_NAME/DEBIAN
7+
8+
mkdir -p $PACKAGE_NAME/usr/bin
9+
cp $SOURCE_BINARY_PATH $PACKAGE_NAME/usr/bin/$DESTINATION_BINARY_NAME
10+
11+
cp postinst $PACKAGE_NAME/DEBIAN/postinst
12+
cp postrm $PACKAGE_NAME/DEBIAN/postrm
13+
cp prerm $PACKAGE_NAME/DEBIAN/prerm
14+
15+
chmod 755 $PACKAGE_NAME/DEBIAN/postinst
16+
chmod 755 $PACKAGE_NAME/DEBIAN/postrm
17+
chmod 755 $PACKAGE_NAME/DEBIAN/prerm
18+
19+
export PACKAGE_NAME VERSION
20+
21+
envsubst < control > $PACKAGE_NAME/DEBIAN/control
22+
23+
dpkg-deb --build $PACKAGE_NAME $PACKAGE_NAME_$VERSION.deb

0 commit comments

Comments
 (0)