Skip to content

Commit

Permalink
chore(generic): upgrade electron-installer-debian to 0.8.x
Browse files Browse the repository at this point in the history
Added promise support, so removed pify from that maker.
  • Loading branch information
malept committed Jan 27, 2018
1 parent e1f2607 commit 0bcedfe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
}
},
"optionalDependencies": {
"electron-installer-debian": "^0.7.1",
"electron-installer-debian": "^0.8.0",
"electron-installer-dmg": "^0.2.0",
"electron-installer-flatpak": "^0.8.0",
"electron-installer-redhat": "^0.5.0",
Expand Down
3 changes: 1 addition & 2 deletions src/makers/linux/deb.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import path from 'path';
import pify from 'pify';

import { ensureFile } from '../../util/ensure-output';
import isInstalled from '../../util/is-installed';
Expand Down Expand Up @@ -34,6 +33,6 @@ export default async ({ dir, targetArch, forgeConfig, packageJSON }) => {
outPath,
});

await pify(installer)(debianConfig);
await installer(debianConfig);
return [outPath];
};
2 changes: 1 addition & 1 deletion test/fast/makers/deb_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('deb maker', () => {

beforeEach(() => {
ensureFileStub = stub().returns(Promise.resolve());
eidStub = stub().callsArg(1);
eidStub = stub().resolves();
forgeConfig = { electronInstallerDebian: {} };

debModule = proxyquire.noPreserveCache().noCallThru().load('../../../src/makers/linux/deb', {
Expand Down

0 comments on commit 0bcedfe

Please sign in to comment.