Skip to content

Commit

Permalink
chore(generic): upgrade electron-windows-store to 0.12
Browse files Browse the repository at this point in the history
electron-windows-store no longer packages the test folder, so vendor the
bogus private key for tests.
  • Loading branch information
malept committed Sep 18, 2017
1 parent 9156296 commit fcdc0a0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
"electron-installer-dmg": "^0.2.0",
"electron-installer-flatpak": "^0.6.0",
"electron-installer-redhat": "^0.5.0",
"electron-windows-store": "^0.10.1",
"electron-windows-store": "^0.12.0",
"electron-winstaller": "^2.5.0"
},
"engines": {
Expand Down
7 changes: 4 additions & 3 deletions test/fast/makers/appx_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ describe('appx maker', () => {

if (process.platform === 'win32') {
it('should create a .pfx file', async () => {
await fs.copy(join(__dirname, '..', '..', '..', 'node_modules',
'electron-windows-store', 'test', 'lib', 'bogus-private-key.pvk'),
join(tmpDir, 'dummy.pvk'));
await fs.copy(
join(__dirname, '..', '..', 'fixture', 'bogus-private-key.pvk'),
join(tmpDir, 'dummy.pvk')
);
const outputCertPath = await createDefaultCertificate('CN=Test', {
certFilePath: tmpDir,
certFileName: 'dummy',
Expand Down
Binary file added test/fixture/bogus-private-key.pvk
Binary file not shown.
2 changes: 1 addition & 1 deletion test/slow/api_spec_slow.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ describe(`electron-forge API (with installer=${installer.substr(12)})`, () => {
packageJSON.config.forge.windowsStoreConfig.packageName = 'TestApp';
if (process.platform === 'win32') {
await fs.copy(
path.join(__dirname, '..', '..', 'node_modules', 'electron-windows-store', 'test', 'lib', 'bogus-private-key.pvk'),
path.join(__dirname, '..', 'fixture', 'bogus-private-key.pvk'),
path.join(dir, 'default.pvk')
);
packageJSON.config.forge.windowsStoreConfig.devCert = await createDefaultCertificate(
Expand Down

0 comments on commit fcdc0a0

Please sign in to comment.