Browse Source
Fix images in builded mode, and libcore in Linux release
master
meriadec
7 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
2 changed files with
3 additions and
1 deletions
-
electron-builder.yml
-
src/helpers/staticPath.js
|
|
@ -13,6 +13,8 @@ mac: |
|
|
|
- zip |
|
|
|
|
|
|
|
linux: |
|
|
|
asarUnpack: |
|
|
|
- node_modules/@ledgerhq/ledger-core |
|
|
|
artifactName: ${name}-${version}-${os}-${arch}.${ext} |
|
|
|
category: Finance |
|
|
|
target: |
|
|
|
|
|
@ -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 |
|
|
|