File tree Expand file tree Collapse file tree 3 files changed +25
-13
lines changed
packages/electron-updater Expand file tree Collapse file tree 3 files changed +25
-13
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,11 @@ environment:
1111
1212install :
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
1617build : off
1718
1819test_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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -8,25 +8,29 @@ const executeAppBuilder: (options: any) => Promise<any> = require(path.join(__di
88export 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
3236export function downloadAllRequiredElectronVersions ( ) : Promise < any > {
You can’t perform that action at this time.
0 commit comments