Skip to content

Commit

Permalink
chore: fix ps1 issue on windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored and malept committed Mar 17, 2019
1 parent 83bfe97 commit 5c13df3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"docs:deploy": "ts-node tools/sync-readmes.ts && bolt docs && ts-node tools/copy-now.ts && cd docs && now && now alias",
"docs:deploy:ci": "ts-node tools/sync-readmes.ts && bolt docs && ts-node tools/copy-now.ts && cd docs && now --token $NOW_TOKEN && now alias --token $NOW_TOKEN",
"lint": "ts-node tools/link-ts.ts && bolt ws exec -- node_modules/.bin/tslint src/**/*.ts test/**/*.ts",
"test": "cross-env TS_NODE_FILES=true yarn run mocha './tools/test-globber.ts'"
"test": "cross-env TS_NODE_FILES=true yarn run mocha './tools/test-globber.ts'",
"postinstall": "rimraf node_modules/.bin/*.ps1"
},
"dependencies": {
"@octokit/rest": "^16.0.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/api/core/test/slow/api_spec_slow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ describe(`electron-forge API (with installer=${nodeInstaller})`, () => {

const packageJSON = await readRawPackageJson(dir);
packageJSON.name = 'testapp';
packageJSON.productName = 'Test App';
packageJSON.productName = 'Test-App';
packageJSON.config.forge.packagerConfig.asar = false;
if (process.platform === 'win32') {
await fs.copy(
Expand Down Expand Up @@ -264,14 +264,14 @@ describe(`electron-forge API (with installer=${nodeInstaller})`, () => {
});

describe('after package', () => {
let resourcesPath = 'Test App.app/Contents/Resources';
let resourcesPath = 'Test-App.app/Contents/Resources';
if (process.platform !== 'darwin') {
resourcesPath = 'resources';
}

it('should have deleted the forge config from the packaged app', async () => {
const cleanPackageJSON = JSON.parse(asar.extractFile(
path.resolve(dir, 'out', `Test App-${process.platform}-${process.arch}`, resourcesPath, 'app.asar'),
path.resolve(dir, 'out', `Test-App-${process.platform}-${process.arch}`, resourcesPath, 'app.asar'),
'package.json',
));
expect(cleanPackageJSON).to.not.have.nested.property('config.forge');
Expand Down

0 comments on commit 5c13df3

Please sign in to comment.