-
Notifications
You must be signed in to change notification settings - Fork 145
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
1 parent
3d85695
commit 1c26e04
Showing
3 changed files
with
33 additions
and
5 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,7 +392,14 @@ jobs: | |
node-version: "20.x" | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- run: yarn install && yarn build && yarn build:binary | ||
- 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 | ||
working-directory: ./cortex-js | ||
|
||
- name: Get Cer for code signing | ||
|
@@ -408,11 +415,16 @@ 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 CODE_SIGN=true DEVELOPER_ID="${{ secrets.DEVELOPER_ID }}" | ||
make codesign-binary CODE_SIGN=true DEVELOPER_ID="${{ secrets.DEVELOPER_ID }}" | ||
- name: Create MacOS PKG Installer | ||
if: runner.os == 'macOS' | ||
|
@@ -421,6 +433,7 @@ 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' | ||
|
@@ -432,6 +445,20 @@ 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' | ||
|
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