Skip to content

Commit ff6539e

Browse files
authored
Merge pull request #139 from beNative/codex/update-metadata-management-for-assets
Scope auto-update metadata updates to artifact directories
2 parents 184e140 + 710d618 commit ff6539e

File tree

4 files changed

+825
-113
lines changed

4 files changed

+825
-113
lines changed

electron/main.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ log.catchErrors({
4646

4747
console.log(`Log file will be written to: ${log.transports.file.getFile().path}`);
4848

49+
if (process.platform === 'win32') {
50+
const arch = process.arch === 'ia32' ? 'ia32' : process.arch === 'arm64' ? 'arm64' : 'x64';
51+
const channel = `win32-${arch}`;
52+
if (autoUpdater.channel !== channel) {
53+
console.log(`Configuring auto-updater channel for Windows architecture: ${channel}`);
54+
autoUpdater.channel = channel;
55+
}
56+
}
57+
4958
let mainWindow: BrowserWindow | null;
5059
let autoCheckEnabled = true;
5160
let pendingAutoUpdateCheck: NodeJS.Timeout | null = null;

0 commit comments

Comments
 (0)