Skip to content

Commit

Permalink
Fix execute permission for app-builder-bin
Browse files Browse the repository at this point in the history
It's required as binary does not have an execute permission by default
develar/app-builder#97
  • Loading branch information
ZIMkaRU committed Jan 3, 2024
1 parent 16e763a commit c531419
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/node/generate-mac-zipand-blockmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
'use strict'

const path = require('path')
const { chmodSync } = require('fs')
const {
execSync
} = require('child_process')
Expand Down Expand Up @@ -34,6 +35,10 @@ const APP_GENERATED_BINARY_PATH = path.join(
const ymlPath = path.join(APP_DIST_PATH, `${channel}-mac.yml`)

try {
// It's required as binary does not have an execute permission by default
// https://github.com/develar/app-builder/issues/97
chmodSync(appBuilderPath, '755')

const output = execSync(`${appBuilderPath} blockmap --input=${APP_GENERATED_BINARY_PATH} --output=${APP_GENERATED_BINARY_PATH}.blockmap --compression=gzip`)
const { sha512, size } = JSON.parse(output)
const ymlData = {
Expand Down

0 comments on commit c531419

Please sign in to comment.