i hate those pfx links
This commit is contained in:
parent
02d296b7f1
commit
3e063c1420
6 changed files with 105 additions and 16 deletions
|
|
@ -315,19 +315,22 @@ function createPusher(api) {
|
|||
default: defs.default || '',
|
||||
prefixes: defs.prefixes.map(p => ({ name: p.name, created: p.created, locked: !!p.locked }))
|
||||
}
|
||||
payload.appSettings = games.map(g => ({
|
||||
id: g.id,
|
||||
name: g.name,
|
||||
wine: g.wine || 'default',
|
||||
prefix: g.prefix || '',
|
||||
args: g.args || '',
|
||||
env: g.env || {},
|
||||
dllOverrides: g.dllOverrides || [],
|
||||
disableUmu: !!g.disableUmu,
|
||||
// Linux-only app config, part of the app's configuration as well
|
||||
isolation: g.isolation,
|
||||
forceX11: !!g.forceX11
|
||||
}))
|
||||
// an app a selection leaves out is untouched there, config included
|
||||
payload.appSettings = games
|
||||
.filter(g => sel.has(`app:${g.id}`, g.id))
|
||||
.map(g => ({
|
||||
id: g.id,
|
||||
name: g.name,
|
||||
wine: g.wine || 'default',
|
||||
prefix: g.prefix || '',
|
||||
args: g.args || '',
|
||||
env: g.env || {},
|
||||
dllOverrides: g.dllOverrides || [],
|
||||
disableUmu: !!g.disableUmu,
|
||||
// Linux-only app config, part of the app's configuration as well
|
||||
isolation: g.isolation,
|
||||
forceX11: !!g.forceX11
|
||||
}))
|
||||
payload.appOrder = games.map(g => g.id)
|
||||
}
|
||||
if (cats.has('prefixes')) {
|
||||
|
|
@ -546,7 +549,11 @@ function createPusher(api) {
|
|||
emit('wait', unit, null, null, true)
|
||||
})
|
||||
if (abort.dead) throw new Error('receiver-lost')
|
||||
if (!plan.data || !plan.data.ok) throw new Error((plan.data && plan.data.error) || `http-${plan.status}`)
|
||||
if (!plan.data || !plan.data.ok) {
|
||||
// a path makes a layout refusal actionable (which folder to reconcile)
|
||||
const detail = plan.data && Array.isArray(plan.data.paths) && plan.data.paths.length ? `:${plan.data.paths[0]}` : ''
|
||||
throw new Error(((plan.data && plan.data.error) || `http-${plan.status}`) + detail)
|
||||
}
|
||||
// every file in the unit, including the ones already identical there
|
||||
for (const entry of entries) if (entry.type === 'file') summary.sizeBytes += entry.size || 0
|
||||
const upload = new Set(plan.data.upload || [])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue