* Separated build macos arm64 and x86_x64 * Update dependencies jobs name * Remove arch from electron-builder command for mac * Add combine latest-mac.yml jobs * Remove unuse workflow job * Add prefix to install js-yaml * Run merge script from /tmp * workflow update release draft depend on combile-latest-mac * correct template path * upload assert release latest-mac.yml overwrite set to true * upload assert release latest-mac.yml overwrite set to true * Grant permission for combine latest-mac jobs --------- Co-authored-by: Hien To <hien@jan.ai>
13 lines
514 B
Bash
Executable File
13 lines
514 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Check if both APP_PATH and DEVELOPER_ID environment variables are set
|
|
if [[ -z "$APP_PATH" ]] || [[ -z "$DEVELOPER_ID" ]]; then
|
|
echo "Either APP_PATH or DEVELOPER_ID is not set. Skipping script execution."
|
|
exit 0
|
|
fi
|
|
|
|
# If both variables are set, execute the following commands
|
|
find "$APP_PATH" \( -type f -perm +111 -o -name "*.node" \) -exec codesign -s "$DEVELOPER_ID" --options=runtime {} \;
|
|
|
|
find "$APP_PATH" -type f -name "*.o" -exec codesign -s "$DEVELOPER_ID" --options=runtime {} \;
|