Skip to content

Commit 7f21f99

Browse files
committed
ignore electron/get cache?
1 parent 0930252 commit 7f21f99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/app-builder-lib/src/util/electronGet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const configToPromise = new Map<string, Promise<string>>()
77

88
export type ElectronDownloadOptions = Omit<
99
ElectronPlatformArtifactDetails,
10-
"platform" | "arch" | "version" | "artifactName" | "artifactSuffix" | "customFilename" | "tempDirectory" | "downloader" | "cacheMode" | "cacheRoot"
10+
"platform" | "arch" | "version" | "artifactName" | "artifactSuffix" | "customFilename" | "tempDirectory" | "downloader" | "cacheMode" | "cacheRoot" | "downloadOptions"
1111
> & {
1212
mirrorOptions: Omit<MirrorOptions, "customDir" | "customFilename" | "customVersion">
1313
}
@@ -49,7 +49,7 @@ async function doDownloadArtifact(config: ElectronGetDownloadConfig, cacheDir: s
4949
},
5050
}
5151
const artifactConfig: ElectronPlatformArtifactDetails = {
52-
cacheMode: cacheDir ? ElectronDownloadCacheMode.ReadWrite : undefined,
52+
cacheMode: ElectronDownloadCacheMode.ReadOnly,
5353
cacheRoot: cacheDir,
5454
...(electronDownload ?? {}),
5555
platform: platformName,

0 commit comments

Comments
 (0)