Skip to content

Commit

Permalink
feat: exclude *.suo files
Browse files Browse the repository at this point in the history
  • Loading branch information
develar committed Oct 13, 2017
1 parent b5d4d66 commit 7cfee12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .idea/dictionaries/develar.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/electron-builder/src/fileMatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { copyDir, copyOrLinkFile, Filter, statOrNull } from "builder-util/out/fs
import { mkdirs } from "fs-extra-p"
import { Minimatch } from "minimatch"
import * as path from "path"
import { Configuration, FileSet, PlatformSpecificBuildOptions } from "./index"
import { Platform } from "./core"
import { Configuration, FileSet, PlatformSpecificBuildOptions } from "./index"
import { PlatformPackager } from "./platformPackager"
import { createFilter, hasMagic } from "./util/filter"

Expand Down Expand Up @@ -150,7 +150,7 @@ export function getMainFileMatchers(appDir: string, destination: string, macroEx
}

patterns.push("!**/node_modules/*/{README.md,karma.conf.js,.coveralls.yml,readme.markdown,README,readme.md,readme,test,__tests__,tests,powered-test,example,examples}")
patterns.push(`!**/*.{iml,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj,cc,pdb}`)
patterns.push(`!**/*.{iml,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,suo,xproj,cc,pdb}`)
patterns.push("!**/._*")
patterns.push("!**/electron-builder.{yaml,yml,json,json5,toml}")
//noinspection SpellCheckingInspection
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-builder/src/util/AppFileWalker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class AppFileWalker implements FileConsumer {
const dirs: Array<string> = []
// our handler is async, but we should add sorted files, so, we add file to result not in the mapper, but after map
const sortedFilePaths = await BluebirdPromise.map(childNames, name => {
if (excludedFiles.has(name) || name.endsWith(".h") || name.endsWith(".o") || name.endsWith(".obj") || name.endsWith(".cc") || name.endsWith(".pdb") || name.endsWith(".d.ts")) {
if (excludedFiles.has(name) || name.endsWith(".h") || name.endsWith(".o") || name.endsWith(".obj") || name.endsWith(".cc") || name.endsWith(".pdb") || name.endsWith(".d.ts") || name.endsWith(".suo") || name.endsWith(".npmignore") || name.endsWith(".sln")) {
return null
}

Expand Down

0 comments on commit 7cfee12

Please sign in to comment.