fix: 兼容 GitHub Actions

This commit is contained in:
foxhui
2025-12-12 02:24:23 +08:00
Unverified
parent 7a028262d3
commit abcb3b3d28
+6 -5
View File
@@ -116,11 +116,12 @@ async function downloadFileOnce(url, destPath, proxyUrl = null) {
retry: {
limit: 0
},
headerGeneratorOptions: {
browsers: [{ name: 'firefox', minVersion: 100 }],
devices: ['desktop'],
locales: ['en-US'],
operatingSystems: ['windows'],
headerGeneratorOptions: null,
headers: {
'user-agent': 'Wget/1.21.4 (linux-gnu)',
'accept': '*/*',
'accept-encoding': 'identity',
'connection': 'keep-alive'
}
};