Skip to content
Open
Changes from 1 commit
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
8 changes: 7 additions & 1 deletion src/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,13 @@ 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 contrlDir = path.join(this.stagingDir, 'DEBIAN');
return fs.chmod(contrlDir, 0o755);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit(spelling):

Suggested change
const contrlDir = path.join(this.stagingDir, 'DEBIAN');
return fs.chmod(contrlDir, 0o755);
const controlDir = path.join(this.stagingDir, 'DEBIAN');
return fs.chmod(controlDir, 0o755);

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi I'm having difficulty creating a test for this. It would require to interfere in the .deb building process and update the control directory's permissions to 777. not sure if the test code is capable of doing it.

})
}

/**
Expand Down