Skip to content

Commit

Permalink
Tech: gogdl update (#3541)
Browse files Browse the repository at this point in the history
* tech: update gogdl

* gog: trigger redist update if redist path doesn't exist before installing the game

* add fallback to dependencies just in case
  • Loading branch information
imLinguin authored Feb 11, 2024
1 parent bda0871 commit 2114eb1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Binary file modified public/bin/darwin/gogdl
Binary file not shown.
Binary file modified public/bin/linux/gogdl
Binary file not shown.
Binary file modified public/bin/win32/gogdl.exe
Binary file not shown.
6 changes: 4 additions & 2 deletions src/backend/downloadmanager/downloadqueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { callAbortController } from 'backend/utils/aborthandler/aborthandler'
import { notify } from '../dialog/dialog'
import i18next from 'i18next'
import { createRedistDMQueueElement } from 'backend/storeManagers/gog/redist'
import { existsSync } from 'fs'
import { gogRedistPath } from 'backend/constants'

const downloadManager = new TypeCheckedStoreBackend('downloadManager', {
cwd: 'store',
Expand Down Expand Up @@ -141,8 +143,8 @@ async function addToQueue(element: DMQueueElement) {
installInfo &&
'dependencies' in installInfo.manifest
) {
const newDependencies = installInfo.manifest.dependencies
if (newDependencies?.length) {
const newDependencies = installInfo.manifest.dependencies || []
if (newDependencies?.length || !existsSync(gogRedistPath)) {
// create redist element
const redistElement = createRedistDMQueueElement()
redistElement.params.dependencies = newDependencies
Expand Down

0 comments on commit 2114eb1

Please sign in to comment.