Browse Source

Fix images in builded mode, and libcore in Linux release

master
meriadec 7 years ago
parent
commit
3cd6c347c7
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 2
      electron-builder.yml
  2. 2
      src/helpers/staticPath.js

2
electron-builder.yml

@ -13,6 +13,8 @@ mac:
- zip
linux:
asarUnpack:
- node_modules/@ledgerhq/ledger-core
artifactName: ${name}-${version}-${os}-${arch}.${ext}
category: Finance
target:

2
src/helpers/staticPath.js

@ -20,7 +20,7 @@ const staticPath =
* note: `i` for `image` (using `img` was confusing when using with <img /> tag)
*/
export function i(path: string): string {
return `/images/${path}`
return isRunningInAsar ? `${staticPath}/images/${path}` : `/images/${path}`
}
export default staticPath

Loading…
Cancel
Save