File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -506,7 +506,7 @@ jobs:
506506 shell : bash
507507 run : |
508508 # Ensure jq exists on all platforms
509- if ! command -v jq >/dev/null 2>&1; then
509+ if ! command -v jq > /dev/null 2>&1; then
510510 echo "Installing jq..."
511511 if [[ "$RUNNER_OS" == "Linux" ]]; then
512512 sudo apt-get update && sudo apt-get install -y jq
@@ -519,11 +519,11 @@ jobs:
519519 fi
520520 fi
521521
522- # Update the package.json
522+ # Update the package.json with 3-octet version for Electron (electron-builder requires semantic versioning)
523523 if [ -f ./package.json ]; then
524524 cp package.json package.json.bak
525- jq '.version = "7.${{ github.run_number }}"' package.json > package.json.tmp && mv package.json.tmp package.json
526- echo "Updated package.json version"
525+ jq '.version = "7.${{ github.run_number }}.0 "' package.json > package.json.tmp && mv package.json.tmp package.json
526+ echo "Updated package.json version for Electron build "
527527 cat package.json | grep "version"
528528 else
529529 echo "package.json not found"
You can’t perform that action at this time.
0 commit comments