Skip to content

Commit c03ad38

Browse files
committed
feat: validate icon permissions
Close #2654
1 parent e5e0782 commit c03ad38

File tree

19 files changed

+50
-47
lines changed

19 files changed

+50
-47
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"////": "All typings are added into root `package.json` to avoid duplication errors in the IDE compiler (several `node.d.ts` files).",
3030
"dependencies": {
3131
"7zip-bin": "~3.1.0",
32-
"app-builder-bin": "1.6.0",
32+
"app-builder-bin": "1.7.0",
3333
"archiver": "^2.1.1",
3434
"async-exit-hook": "^2.0.1",
3535
"aws-sdk": "^2.205.0",
@@ -48,7 +48,7 @@
4848
"ini": "^1.3.5",
4949
"is-ci": "^1.1.0",
5050
"isbinaryfile": "^3.0.2",
51-
"js-yaml": "^3.10.0",
51+
"js-yaml": "^3.11.0",
5252
"lazy-val": "^1.0.3",
5353
"lodash.isequal": "^4.5.0",
5454
"mime": "^2.2.0",

packages/builder-util/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"out"
1212
],
1313
"dependencies": {
14-
"app-builder-bin": "1.6.0",
14+
"app-builder-bin": "1.7.0",
1515
"temp-file": "^3.1.1",
1616
"fs-extra-p": "^4.5.2",
1717
"is-ci": "^1.1.0",
@@ -24,7 +24,7 @@
2424
"7zip-bin": "~3.1.0",
2525
"semver": "^5.5.0",
2626
"lazy-val": "^1.0.3",
27-
"js-yaml": "^3.10.0"
27+
"js-yaml": "^3.11.0"
2828
},
2929
"typings": "./out/util.d.ts"
3030
}

packages/builder-util/src/DebugLogger.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import BluebirdPromise from "bluebird-lst"
21
import { outputFile } from "fs-extra-p"
32
import { serializeToYaml } from "./util"
43

@@ -46,7 +45,7 @@ export class DebugLogger {
4645
return outputFile(file, serializeToYaml(this.data))
4746
}
4847
else {
49-
return BluebirdPromise.resolve()
48+
return Promise.resolve()
5049
}
5150
}
5251
}

packages/builder-util/src/asyncTaskManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class AsyncTaskManager {
2929
.catch(it => {
3030
log.debug({error: it.message || it.toString()}, "async task error")
3131
this.errors.push(it)
32-
return BluebirdPromise.resolve(null)
32+
return Promise.resolve(null)
3333
}))
3434
}
3535

packages/dmg-builder/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"parse-color": "^1.0.0",
1919
"builder-util": "^0.0.0-semantic-release",
2020
"iconv-lite": "^0.4.19",
21-
"js-yaml": "^3.10.0",
21+
"js-yaml": "^3.11.0",
2222
"electron-builder-lib": "~0.0.0-semantic-release",
2323
"sanitize-filename": "^1.6.1"
2424
},

packages/electron-builder-lib/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"homepage": "https://github.com/electron-userland/electron-builder",
4343
"dependencies": {
4444
"7zip-bin": "~3.1.0",
45-
"app-builder-bin": "1.6.0",
45+
"app-builder-bin": "1.7.0",
4646
"async-exit-hook": "^2.0.1",
4747
"bluebird-lst": "^1.0.5",
4848
"chromium-pickle-js": "^0.2.0",
@@ -54,7 +54,7 @@
5454
"hosted-git-info": "^2.5.0",
5555
"is-ci": "^1.1.0",
5656
"isbinaryfile": "^3.0.2",
57-
"js-yaml": "^3.10.0",
57+
"js-yaml": "^3.11.0",
5858
"read-config-file": "3.0.0",
5959
"minimatch": "^3.0.4",
6060
"normalize-package-data": "^2.4.0",

packages/electron-builder-lib/src/fileMatcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export function getFileMatchers(config: Configuration, name: "files" | "extraFil
229229
/** @internal */
230230
export function copyFiles(matchers: Array<FileMatcher> | null): Promise<any> {
231231
if (matchers == null || matchers.length === 0) {
232-
return BluebirdPromise.resolve()
232+
return Promise.resolve()
233233
}
234234

235235
return BluebirdPromise.map(matchers, async (matcher: FileMatcher) => {

packages/electron-builder-lib/src/packager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ function createOutDirIfNeed(targetList: Array<Target>, createdOutDirs: Set<strin
497497
return ensureDir(it)
498498
})
499499
}
500-
return BluebirdPromise.resolve()
500+
return Promise.resolve()
501501
}
502502

503503
export interface BuildResult {

packages/electron-builder-lib/src/remoteBuilder/RemoteBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class RemoteBuilder {
4545

4646
build(): Promise<any> {
4747
if (this.buildStarted) {
48-
return BluebirdPromise.resolve()
48+
return Promise.resolve()
4949
}
5050

5151
this.buildStarted = true

packages/electron-builder-lib/src/targets/nsis/nsisUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class CopyElevateHelper {
7070
}
7171

7272
if (isPackElevateHelper === false) {
73-
return BluebirdPromise.resolve()
73+
return Promise.resolve()
7474
}
7575

7676
let promise = this.copied.get(appOutDir)

0 commit comments

Comments
 (0)