winbench / bench

Portable Software Environment for Windows
https://winbench.org
MIT License
20 stars 3 forks source link

GitKraken - fail to start #133

Closed floriandd2ba closed 6 years ago

floriandd2ba commented 6 years ago

GitKraken don't start at the launcher.

Start with PowerShell Show this error:

PS H:\winbench\lib\apps\bench\gitkraken>
Node started time: 1529711047468
{ Error: ENOENT: no such file or directory, scandir 'H:\winbench\home\AppData\Roaming\.gitkraken\profiles'
    at Object.fs.readdirSync (fs.js:910:18)
    at Object.fs.readdirSync (ELECTRON_ASAR.js:578:28)
    at getProfileGuids (H:\winbench\lib\apps\bench\gitkraken\resources\app.asar\src\appBootstrap\upgradeScripts\versionScripts\v2_2_0.js:38:32)
    at Object.upgradeToVersion220 [as v2.2.0] (H:\winbench\lib\apps\bench\gitkraken\resources\app.asar\src\appBootstrap\upgradeScripts\versionScripts\v2_2_0.js:56:20)
    at lastPromise.then (H:\winbench\lib\apps\bench\gitkraken\resources\app.asar\src\appBootstrap\upgradeScripts\index.js:17:197)
    at <anonymous>
  errno: -4058,
  code: 'ENOENT',
  syscall: 'scandir',
  path: 'H:\\winbench\\home\\AppData\\Roaming\\.gitkraken\\profiles' }

*I solved this with this Change in "\lib\applibs\default\scripts\bench\gitkraken.setup.ps1"**

$profilesDir = [IO.Path]::Combine((Get-ConfigValue "AppDataDir"), ".gitkraken\profiles")

if (!(Test-Path $profilesDir))
{
    $_ = mkdir $profilesDir
}
mastersign commented 6 years ago

Thanks for the patch. I updated the default app library. Please update the app libraries in your Bench environment to use the fixed script.

Setup DialogSetupUpdate App Libraries

Then reinstall the GitKraken app.