Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ class DebianInstaller extends common.ElectronInstaller {
const dest = path.join(this.stagingDir, 'DEBIAN', 'control')
this.options.logger(`Creating control file at ${dest}`)

return common.wrapError('creating control file', async () => this.createTemplatedFile(src, dest))
return common.wrapError('creating control file', async () => {
await this.createTemplatedFile(src, dest)

const controlDir = path.join(this.stagingDir, 'DEBIAN')
return fs.chmod(controlDir, 0o755)
})
}

/**
Expand Down