@@ -108,6 +108,7 @@ jobs:
108108 if [ "${{ inputs.channel }}" == "stable" ]; then
109109 echo "::set-output name=package_name::cortexcpp"
110110 echo "::set-output name=destination_binary_name::cortex"
111+ echo "::set-output name=destination_binary_server_name::cortex-server"
111112 echo "::set-output name=data_folder_name::cortexcpp"
112113 echo "::set-output name=configuration_file_name::.cortexrc"
113114 echo "::set-output name=uninstaller_file_name::cortex-uninstall.sh"
@@ -118,6 +119,7 @@ jobs:
118119 if [ "${{ inputs.channel }}" == "beta" ]; then
119120 echo "::set-output name=package_name::cortexcpp-beta"
120121 echo "::set-output name=destination_binary_name::cortex-beta"
122+ echo "::set-output name=destination_binary_server_name::cortex-server-beta"
121123 echo "::set-output name=data_folder_name::cortexcpp-beta"
122124 echo "::set-output name=configuration_file_name::.cortexrc-beta"
123125 echo "::set-output name=uninstaller_file_name::cortex-beta-uninstall.sh"
@@ -128,6 +130,7 @@ jobs:
128130 if [ "${{ inputs.channel }}" == "nightly" ]; then
129131 echo "::set-output name=package_name::cortexcpp-nightly"
130132 echo "::set-output name=destination_binary_name::cortex-nightly"
133+ echo "::set-output name=destination_binary_server_name::cortex-server-nightly"
131134 echo "::set-output name=data_folder_name::cortexcpp-nightly"
132135 echo "::set-output name=configuration_file_name::.cortexrc-nightly"
133136 echo "::set-output name=uninstaller_file_name::cortex-nightly-uninstall.sh"
@@ -164,7 +167,7 @@ jobs:
164167 - name : Pre-package
165168 run : |
166169 cd engine
167- make pre-package DESTINATION_BINARY_NAME="${{ steps.set-output-params.outputs.destination_binary_name }}"
170+ make pre-package DESTINATION_BINARY_NAME="${{ steps.set-output-params.outputs.destination_binary_name }}" DESTINATION_BINARY_SERVER_NAME="${{ steps.set-output-params.outputs.destination_binary_server_name }}"
168171
169172 - name : Upload Artifact
170173 uses : actions/upload-artifact@v4
@@ -192,6 +195,7 @@ jobs:
192195 if [ "${{ inputs.channel }}" == "stable" ]; then
193196 echo "::set-output name=package_name::cortexcpp"
194197 echo "::set-output name=destination_binary_name::cortex"
198+ echo "::set-output name=destination_binary_server_name::cortex-server"
195199 echo "::set-output name=data_folder_name::cortexcpp"
196200 echo "::set-output name=configuration_file_name::.cortexrc"
197201 echo "::set-output name=uninstaller_file_name::cortex-uninstall.sh"
@@ -202,6 +206,7 @@ jobs:
202206 if [ "${{ inputs.channel }}" == "beta" ]; then
203207 echo "::set-output name=package_name::cortexcpp-beta"
204208 echo "::set-output name=destination_binary_name::cortex-beta"
209+ echo "::set-output name=destination_binary_server_name::cortex-server-beta"
205210 echo "::set-output name=data_folder_name::cortexcpp-beta"
206211 echo "::set-output name=configuration_file_name::.cortexrc-beta"
207212 echo "::set-output name=uninstaller_file_name::cortex-beta-uninstall.sh"
@@ -212,6 +217,7 @@ jobs:
212217 if [ "${{ inputs.channel }}" == "nightly" ]; then
213218 echo "::set-output name=package_name::cortexcpp-nightly"
214219 echo "::set-output name=destination_binary_name::cortex-nightly"
220+ echo "::set-output name=destination_binary_server_name::cortex-server-nightly"
215221 echo "::set-output name=data_folder_name::cortexcpp-nightly"
216222 echo "::set-output name=configuration_file_name::.cortexrc-nightly"
217223 echo "::set-output name=uninstaller_file_name::cortex-nightly-uninstall.sh"
@@ -250,20 +256,24 @@ jobs:
250256 mkdir -p engine/cortex
251257 ls -al
252258 find . | grep ${{ steps.set-output-params.outputs.destination_binary_name }}
259+ find . | grep ${{ steps.set-output-params.outputs.destination_binary_server_name }}
253260 lipo -create cortex-${{ inputs.new_version }}-mac-arm64/${{ steps.set-output-params.outputs.destination_binary_name }} cortex-${{ inputs.new_version }}-mac-amd64/${{ steps.set-output-params.outputs.destination_binary_name }} -output engine/cortex/${{ steps.set-output-params.outputs.destination_binary_name }}
261+ lipo -create cortex-${{ inputs.new_version }}-mac-arm64/${{ steps.set-output-params.outputs.destination_binary_server_name }} cortex-${{ inputs.new_version }}-mac-amd64/${{ steps.set-output-params.outputs.destination_binary_server_name }} -output engine/cortex/${{ steps.set-output-params.outputs.destination_binary_server_name }}
254262 chmod +x engine/cortex/${{ steps.set-output-params.outputs.destination_binary_name }}
263+ chmod +x engine/cortex/${{ steps.set-output-params.outputs.destination_binary_server_name }}
255264
256265 - name : Code Signing binaries
257266 run : |
258267 cd engine
259- make codesign-binary CODE_SIGN=true DEVELOPER_ID="${{ secrets.DEVELOPER_ID }}" DESTINATION_BINARY_NAME="${{ steps.set-output-params.outputs.destination_binary_name }}"
268+ make codesign-binary CODE_SIGN=true DEVELOPER_ID="${{ secrets.DEVELOPER_ID }}" DESTINATION_BINARY_NAME="${{ steps.set-output-params.outputs.destination_binary_name }}" DESTINATION_BINARY_SERVER_NAME="${{ steps.set-output-params.outputs.destination_binary_server_name }}"
260269
261270 - name : Notary macOS Binary
262271 run : |
263272 curl -sSfL https://raw.githubusercontent.com/anchore/quill/main/install.sh | sh -s -- -b /usr/local/bin
264273 cd engine/cortex
265274 # Notarize the binary
266275 quill notarize ./${{ steps.set-output-params.outputs.destination_binary_name }}
276+ quill notarize ./${{ steps.set-output-params.outputs.destination_binary_server_name }}
267277 env :
268278 QUILL_NOTARY_KEY_ID : ${{ secrets.NOTARY_KEY_ID }}
269279 QUILL_NOTARY_ISSUER : ${{ secrets.NOTARY_ISSUER }}
@@ -273,7 +283,7 @@ jobs:
273283 shell : bash
274284 run : |
275285 cd engine
276- make build-installer PACKAGE_NAME="${{ steps.set-output-params.outputs.package_name }}" VERSION=${{ inputs.new_version }} SOURCE_BINARY_PATH="../../cortex/${{ steps.set-output-params.outputs.destination_binary_name }}" DESTINATION_BINARY_NAME="${{ steps.set-output-params.outputs.destination_binary_name }}" DATA_FOLDER_NAME="${{ steps.set-output-params.outputs.data_folder_name }}" CONFIGURATION_FILE_NAME="${{ steps.set-output-params.outputs.configuration_file_name }}" UNINSTALLER_FILE_NAME="${{ steps.set-output-params.outputs.uninstaller_file_name }}"
286+ make build-installer PACKAGE_NAME="${{ steps.set-output-params.outputs.package_name }}" VERSION=${{ inputs.new_version }} SOURCE_BINARY_PATH="../../cortex/${{ steps.set-output-params.outputs.destination_binary_name }}" SOURCE_BINARY_SERVER_PATH="../../cortex/${{ steps.set-output-params.outputs.destination_binary_server_name }}" DESTINATION_BINARY_NAME="${{ steps.set-output-params.outputs.destination_binary_name }}" DESTINATION_BINARY_SERVER_NAME="${{ steps.set-output-params.outputs.destination_binary_server_name }}" DATA_FOLDER_NAME="${{ steps.set-output-params.outputs.data_folder_name }}" CONFIGURATION_FILE_NAME="${{ steps.set-output-params.outputs.configuration_file_name }}" UNINSTALLER_FILE_NAME="${{ steps.set-output-params.outputs.uninstaller_file_name }}"
277287 cat templates/macos/Scripts/postinstall
278288
279289 - name : Codesign and notary for macos installer
@@ -298,7 +308,7 @@ jobs:
298308
299309 cd ../../
300310 chmod +x create_pkg_local.sh
301- ./create_pkg_local.sh ${{ steps.set-output-params.outputs.package_name }} ${{ inputs.new_version }} ../../cortex/${{ steps.set-output-params.outputs.destination_binary_name }} ${{ steps.set-output-params.outputs.destination_binary_name }} ${{ steps.set-output-params.outputs.data_folder_name }} ${{ steps.set-output-params.outputs.configuration_file_name }} ${{ steps.set-output-params.outputs.uninstaller_file_name }}
311+ ./create_pkg_local.sh ${{ steps.set-output-params.outputs.package_name }} ${{ inputs.new_version }} ../../cortex/${{ steps.set-output-params.outputs.destination_binary_name }} ../../cortex/ ${{ steps.set-output-params.outputs.destination_binary_server_name }} ${{ steps.set-output-params.outputs. destination_binary_name }} ${{ steps.set-output-params.outputs.destination_binary_server_name }} ${{ steps.set-output-params.outputs.data_folder_name }} ${{ steps.set-output-params.outputs.configuration_file_name }} ${{ steps.set-output-params.outputs.uninstaller_file_name }}
302312 cp ${{ steps.set-output-params.outputs.package_name }}.pkg ../../
303313
304314 - name : Codesign and notary for macos installer
@@ -340,6 +350,7 @@ jobs:
340350 if : inputs.public_provider == 'aws-s3'
341351 run : |
342352 aws s3 cp ./engine/cortex.tar.gz s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/temp-latest/mac-universal-cortex-nightly.tar.gz
353+ aws s3 cp ./engine/${{ steps.set-output-params.outputs.package_name }}-network.pkg s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/temp-latest/cortex-mac-universal-network-installer.pkg
343354
344355 aws s3 cp ./engine/cortex.tar.gz s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/v${{ inputs.new_version }}/mac-universal/cortex-nightly.tar.gz
345356 aws s3 cp ./engine/${{ steps.set-output-params.outputs.package_name }}-network.pkg s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/v${{ inputs.new_version }}/mac-universal/cortex-${{ inputs.new_version }}-mac-universal-network-installer.pkg
0 commit comments