Skip to content

Commit e909842

Browse files
committed
chore: fix appveyor.yml
1 parent d11c760 commit e909842

File tree

3 files changed

+25
-13
lines changed

3 files changed

+25
-13
lines changed

appveyor.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ environment:
1111

1212
install:
1313
- ps: Install-Product node 12 x64
14-
- YARN_CHECKSUM_BEHAVIOR=ignore node .yarn/releases/yarn-sources.js install
14+
- set YARN_CHECKSUM_BEHAVIOR=ignore
15+
- node .yarn/releases/yarn-sources.js install
1516

1617
build: off
1718

1819
test_script:
19-
- node .yarn/releases/yarn-sources.js test
20+
- node .yarn/releases/yarn-sources.js pretest
21+
- node .yarn/releases/yarn-sources.js node ./test/out/helpers/runTests.js

packages/electron-updater/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
## 4.3.0
2+
3+
### Bug Fixes
4+
5+
* Remove dependency on pako module, use native API instead.
6+
17
## 4.2.0
28

39
### Bug Fixes
410

5-
* Forbid using of quotes in a file names. Thanks to [Doyensec](https://doyensec.com/).
11+
* Forbid using of quotes in a file names.
612

713
## 4.2.0
814

test/src/helpers/downloadElectron.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,29 @@ const executeAppBuilder: (options: any) => Promise<any> = require(path.join(__di
88
export async function deleteOldElectronVersion(): Promise<any> {
99
// on CircleCi no need to clean manually
1010
if (process.env.CIRCLECI || !isCi) {
11-
return Promise.resolve()
11+
return
1212
}
1313

1414
const cacheDir = getElectronCacheDir()
15-
return await Promise.all((await fs.readdir(cacheDir)).map(file => {
15+
let files: Array<string>
16+
try {
17+
files = await fs.readdir(cacheDir)
18+
}
19+
catch (e) {
20+
if (e.code === "ENOENT") {
21+
return
22+
}
23+
else {
24+
throw e
25+
}
26+
}
27+
return await Promise.all(files.map(file => {
1628
if (file.endsWith(".zip") && !file.includes(ELECTRON_VERSION)) {
1729
console.log(`Remove old electron ${file}`)
1830
return fs.unlink(path.join(cacheDir, file))
1931
}
2032
return Promise.resolve(null)
2133
}))
22-
.catch(e => {
23-
if (e.code === "ENOENT") {
24-
return []
25-
}
26-
else {
27-
throw e
28-
}
29-
})
3034
}
3135

3236
export function downloadAllRequiredElectronVersions(): Promise<any> {

0 commit comments

Comments
 (0)