Gaëtan Renaudeau
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with
24 additions and
4 deletions
-
BIN
build/icon.icns
-
electron-builder.yml
-
scripts/compile.sh
-
scripts/dist.sh
-
src/main/app.js
-
BIN
static/images/linux-app-icon-512x512.png
|
@ -12,6 +12,9 @@ mac: |
|
|
- dmg |
|
|
- dmg |
|
|
- zip |
|
|
- zip |
|
|
|
|
|
|
|
|
|
|
|
appImage: |
|
|
|
|
|
systemIntegration: doNotAsk |
|
|
|
|
|
|
|
|
linux: |
|
|
linux: |
|
|
asarUnpack: |
|
|
asarUnpack: |
|
|
- node_modules/@ledgerhq/ledger-core |
|
|
- node_modules/@ledgerhq/ledger-core |
|
@ -21,9 +24,6 @@ linux: |
|
|
- target: AppImage |
|
|
- target: AppImage |
|
|
arch: |
|
|
arch: |
|
|
- x64 |
|
|
- x64 |
|
|
- target: tar.gz |
|
|
|
|
|
arch: |
|
|
|
|
|
- x64 |
|
|
|
|
|
|
|
|
|
|
|
win: |
|
|
win: |
|
|
artifactName: ${name}-${version}-${os}-${arch}.${ext} |
|
|
artifactName: ${name}-${version}-${os}-${arch}.${ext} |
|
|
|
@ -4,8 +4,9 @@ set -e |
|
|
|
|
|
|
|
|
export GIT_REVISION=`git rev-parse HEAD` |
|
|
export GIT_REVISION=`git rev-parse HEAD` |
|
|
export SENTRY_URL=https://db8f5b9b021048d4a401f045371701cb@sentry.io/274561 |
|
|
export SENTRY_URL=https://db8f5b9b021048d4a401f045371701cb@sentry.io/274561 |
|
|
|
|
|
export JOBS=max |
|
|
|
|
|
|
|
|
rm -rf ./node_modules/.cache dist |
|
|
rm -rf ./node_modules/.cache dist |
|
|
JOBS=max yarn |
|
|
yarn |
|
|
NODE_ENV=production yarn run webpack-cli --mode production --config webpack/internals.config.js |
|
|
NODE_ENV=production yarn run webpack-cli --mode production --config webpack/internals.config.js |
|
|
NODE_ENV=production yarn run electron-webpack |
|
|
NODE_ENV=production yarn run electron-webpack |
|
|
|
@ -1,3 +1,16 @@ |
|
|
#!/bin/bash |
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
# hilarious fix: to make linux icon we have to remove icon.png from build folder |
|
|
|
|
|
# some context: |
|
|
|
|
|
# - https://github.com/electron-userland/electron-builder/issues/2577 |
|
|
|
|
|
# - https://github.com/electron-userland/electron-builder/issues/2269 |
|
|
|
|
|
if [[ `uname` == 'Linux' ]]; then |
|
|
|
|
|
mv build/icon.png /tmp |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
yarn compile && DEBUG=electron-builder electron-builder |
|
|
yarn compile && DEBUG=electron-builder electron-builder |
|
|
|
|
|
|
|
|
|
|
|
# hilarious fix continuation: put back the icon where it was |
|
|
|
|
|
if [[ `uname` == 'Linux' ]]; then |
|
|
|
|
|
mv /tmp/icon.png build |
|
|
|
|
|
fi |
|
|
|
@ -11,6 +11,7 @@ import { |
|
|
|
|
|
|
|
|
import menu from 'main/menu' |
|
|
import menu from 'main/menu' |
|
|
import db from 'helpers/db' |
|
|
import db from 'helpers/db' |
|
|
|
|
|
import { i } from 'helpers/staticPath' |
|
|
|
|
|
|
|
|
import { terminateAllTheThings } from './terminator' |
|
|
import { terminateAllTheThings } from './terminator' |
|
|
|
|
|
|
|
@ -65,6 +66,11 @@ const saveWindowSettings = window => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const defaultWindowOptions = { |
|
|
const defaultWindowOptions = { |
|
|
|
|
|
// Linux require window to have icon to be correctly displayed
|
|
|
|
|
|
// in docks, when using <C-tab>, etc.
|
|
|
|
|
|
// see https://github.com/electron-userland/electron-builder/issues/2269<Paste>
|
|
|
|
|
|
icon: i('linux-app-icon-512x512.png'), |
|
|
|
|
|
|
|
|
backgroundColor: '#fff', |
|
|
backgroundColor: '#fff', |
|
|
webPreferences: { |
|
|
webPreferences: { |
|
|
devTools, |
|
|
devTools, |
|
|
Width:
|
Height:
|
Size: 44 KiB
|