Skip to content

Commit d792bad

Browse files
author
Bing Yang
committed
fix: ensure control directory has right permissions
1 parent e5531df commit d792bad

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/installer.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,13 @@ class DebianInstaller extends common.ElectronInstaller {
9191
const dest = path.join(this.stagingDir, 'DEBIAN', 'control')
9292
this.options.logger(`Creating control file at ${dest}`)
9393

94-
return common.wrapError('creating control file', async () => this.createTemplatedFile(src, dest))
94+
return common.wrapError('creating control file', async () => {
95+
96+
await this.createTemplatedFile(src, dest);
97+
98+
const contrlDir = path.join(this.stagingDir, 'DEBIAN');
99+
return fs.chmod(contrlDir, 0o755);
100+
})
95101
}
96102

97103
/**

0 commit comments

Comments
 (0)