add installer to build package
This commit is contained in:
parent
1aa603aeac
commit
ada55faf13
88 changed files with 10828 additions and 25 deletions
|
|
@ -20,6 +20,10 @@ function writeIconThemeDirs(png) {
|
|||
const sizes = { '16x16': 16, '32x32': 32, '48x48': 48, '256x256': 256 }
|
||||
const home = process.env.HOME
|
||||
if (!home) return
|
||||
const exe = path.join(require('./paths').APP_ROOT, 'plwl')
|
||||
const execPath = fs.existsSync(exe)
|
||||
? exe
|
||||
: (process.env.PLWL_EXEC || 'plwl')
|
||||
const base = path.join(home, '.local', 'share', 'icons')
|
||||
for (const [dir, size] of Object.entries(sizes)) {
|
||||
const themeDir = path.join(base, 'hicolor', dir, 'apps')
|
||||
|
|
@ -33,7 +37,7 @@ function writeIconThemeDirs(png) {
|
|||
'Type=Application',
|
||||
`Name=${APP_NAME}`,
|
||||
'Comment=Portable Linux Wine Launcher',
|
||||
'Exec=plwl',
|
||||
`Exec=${execPath}`,
|
||||
`Icon=plwl`,
|
||||
'Terminal=false',
|
||||
'Categories=Game;'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue