-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "feat: cpuinfo as node module - new build scripts (#813)"
This reverts commit 36c247f.
- Loading branch information
Showing
14 changed files
with
175 additions
and
352 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 |
---|---|---|
|
@@ -392,14 +392,7 @@ jobs: | |
node-version: "20.x" | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
|
||
- run: pip3 install --upgrade setuptools | ||
if: runner.os == 'macOS' | ||
|
||
- run: yarn install && yarn build:binary | ||
- run: yarn install && yarn build && yarn build:binary | ||
working-directory: ./cortex-js | ||
|
||
- name: Get Cer for code signing | ||
|
@@ -415,16 +408,11 @@ jobs: | |
p12-file-base64: ${{ secrets.CODE_SIGN_P12_BASE64 }} | ||
p12-password: ${{ secrets.CODE_SIGN_P12_PASSWORD }} | ||
|
||
- name: update app info | ||
run: | | ||
cd cortex-js | ||
make update-app-info | ||
- name: Code Signing macOS | ||
if: runner.os == 'macOS' | ||
run: | | ||
cd cortex-js | ||
make codesign-binary CODE_SIGN=true DEVELOPER_ID="${{ secrets.DEVELOPER_ID }}" | ||
make codesign CODE_SIGN=true DEVELOPER_ID="${{ secrets.DEVELOPER_ID }}" | ||
- name: Create MacOS PKG Installer | ||
if: runner.os == 'macOS' | ||
|
@@ -433,7 +421,6 @@ jobs: | |
mkdir installer | ||
cp cortex installer/cortex | ||
pkgbuild --identifier ai.cortex.pkg --install-location ./usr/local/bin/ --root ./installer cortex-installer.pkg | ||
make codesign-installer CODE_SIGN=true DEVELOPER_ID="${{ secrets.DEVELOPER_ID }}" | ||
- name: Create MacOS PKG Installer | ||
if: runner.os == 'Linux' | ||
|
@@ -445,20 +432,6 @@ jobs: | |
cp cortex cortexso/usr/local/bin/cortex | ||
dpkg-deb --build cortexso | ||
- uses: nick-fields/retry@v3 | ||
with: | ||
continue_on_error: true | ||
retry_wait_seconds: 10 | ||
timeout_minutes: 10 | ||
max_attempts: 3 | ||
shell: cmd | ||
command: | | ||
cd cortex-js | ||
set PATH=%PATH%;%USERPROFILE%\.dotnet\tools | ||
make codesign-binary CODE_SIGN=true CORTEX_VERSION="0.${{ needs.create-draft-release.outputs.version }}" AZURE_KEY_VAULT_URI="${{ secrets.AZURE_KEY_VAULT_URI }}" AZURE_CLIENT_ID="${{ secrets.AZURE_CLIENT_ID }}" AZURE_TENANT_ID="${{ secrets.AZURE_TENANT_ID }}" AZURE_CLIENT_SECRET="${{ secrets.AZURE_CLIENT_SECRET }}" AZURE_CERT_NAME="${{ secrets.AZURE_CERT_NAME }}" | ||
name: Code Signing Windows | ||
if: runner.os == 'Windows' | ||
|
||
- name: Compile .ISS to .EXE Installer | ||
uses: Minionguyjpro/[email protected] | ||
if: runner.os == 'Windows' | ||
|
@@ -476,7 +449,7 @@ jobs: | |
command: | | ||
cd cortex-js | ||
set PATH=%PATH%;%USERPROFILE%\.dotnet\tools | ||
make codesign-installer CODE_SIGN=true CORTEX_VERSION="0.${{ needs.create-draft-release.outputs.version }}" AZURE_KEY_VAULT_URI="${{ secrets.AZURE_KEY_VAULT_URI }}" AZURE_CLIENT_ID="${{ secrets.AZURE_CLIENT_ID }}" AZURE_TENANT_ID="${{ secrets.AZURE_TENANT_ID }}" AZURE_CLIENT_SECRET="${{ secrets.AZURE_CLIENT_SECRET }}" AZURE_CERT_NAME="${{ secrets.AZURE_CERT_NAME }}" | ||
make codesign CODE_SIGN=true AZURE_KEY_VAULT_URI="${{ secrets.AZURE_KEY_VAULT_URI }}" AZURE_CLIENT_ID="${{ secrets.AZURE_CLIENT_ID }}" AZURE_TENANT_ID="${{ secrets.AZURE_TENANT_ID }}" AZURE_CLIENT_SECRET="${{ secrets.AZURE_CLIENT_SECRET }}" AZURE_CERT_NAME="${{ secrets.AZURE_CERT_NAME }}" | ||
name: Code Signing Windows | ||
if: runner.os == 'Windows' | ||
|
||
|
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
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
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.