more accurate sync progress report
This commit is contained in:
parent
8e3512b5cd
commit
c0f6e802ed
12 changed files with 390 additions and 63 deletions
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const { DIRS, resolvePortablePath } = require('./paths')
|
||||
const { DIRS, resolvePortablePath, launcherIconDiskPath } = require('./paths')
|
||||
|
||||
const DATA_DIR = process.env.PLWL_BUILD_DIR ? path.join(process.env.PLWL_BUILD_DIR, 'files', 'data') : DIRS.DATA
|
||||
|
||||
|
|
@ -62,8 +62,9 @@ function buildDesktopEntry(game) {
|
|||
if (found) icon = path.join(iconDir, found)
|
||||
} catch {}
|
||||
if (!icon) {
|
||||
// fall back to the launcher icon so the shortcut is never naked
|
||||
icon = require('./paths').launcherIconPath() || ''
|
||||
// fall back to the launcher icon so the shortcut is never naked (the
|
||||
// on-disk copy: the desktop environment cannot read inside app.asar)
|
||||
icon = launcherIconDiskPath() || ''
|
||||
}
|
||||
const lines = [
|
||||
'[Desktop Entry]',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue