Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tech] Refactor Download Methods #3129

Merged
merged 12 commits into from
Oct 30, 2023
Prev Previous commit
Next Next commit
Merge branch 'main' of github.com:Heroic-Games-Launcher/HeroicGamesLa…
…uncher into refactor/wine_download
  • Loading branch information
flavioislima committed Oct 30, 2023
commit 1544e0ae910cc97d8ee0d4af2fafc67cb6de2ac3
9 changes: 5 additions & 4 deletions src/backend/tools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
rm
} from 'graceful-fs'
import { exec, spawn } from 'child_process'
import { downloadFile, execAsync, getWineFromProton } from './utils'
import { downloadFile, execAsync, getWineFromProton } from '../utils'
import {
execOptions,
toolsPath,
Expand Down Expand Up @@ -38,9 +38,10 @@ import {
get_vulkan_instance_version
} from '../utils/graphics/vulkan'
import { lt as semverLt } from 'semver'
import { gameManagerMap } from './storeManagers'
import { createAbortController } from './utils/aborthandler/aborthandler'
import { createAbortController } from '../utils/aborthandler/aborthandler'
import { mkdir } from 'fs'
import { gameManagerMap } from '../storeManagers'
import { sendFrontendMessage } from '../main_window'

export const DXVK = {
getLatest: async () => {
Expand Down Expand Up @@ -146,7 +147,7 @@ export const DXVK = {
)
})
})
.catch((error) => {
.catch((error: string) => {
logWarning(
[`Error when downloading ${tool.name}`, error],
LogPrefix.DXVKInstaller
Expand Down
13 changes: 4 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3407,15 +3407,10 @@ duplexify@^3.6.0:
readable-stream "^2.0.0"
stream-shift "^1.0.0"

easydl@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/easydl/-/easydl-1.1.0.tgz#99bdaf0599686800450c043fd86e37fb0dc5f699"
integrity sha512-TSW/RRbgniHVqFFvyzmIhWNRulEZ2tJdZ7Ns1qn54yQAxg6afPPvtFUF1n9UdLRa9QWtutLrHtnJGA6ogE3PGQ==

ejs@^3.1.7:
version "3.1.8"
resolved "https://registry.yarnpkg.com/ejs/-/ejs-3.1.8.tgz#758d32910c78047585c7ef1f92f9ee041c1c190b"
integrity sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==
ejs@^3.1.8:
version "3.1.9"
resolved "https://registry.yarnpkg.com/ejs/-/ejs-3.1.9.tgz#03c9e8777fe12686a9effcef22303ca3d8eeb361"
integrity sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==
dependencies:
jake "^10.8.5"

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.