Skip to content

Commit

Permalink
Merge pull request #109 from joshirio/master
Browse files Browse the repository at this point in the history
Snap: pick up system theme and icons
  • Loading branch information
vladimiry authored Feb 17, 2019
2 parents 89200ce + 6d09209 commit 2a65179
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Linux/OSX/Windows installation packages download page is [here](https://github.c
- On `Linux`: `python v2.7`, `make` and a C/C++ compiler toolchain, like `GCC` are most likely already installed. Besides [keytar](https://github.com/atom/node-keytar) needs `libsecret` library to be installed.
- On `Mac OS X`: `python v2.7` and [Xcode](https://developer.apple.com/xcode/download/) need to be installed. You also need to install the `Command Line Tools` via Xcode, can be found under the `Xcode -> Preferences -> Downloads` menu.
- [Clone](https://help.github.com/articles/cloning-a-repository/) this project to your local device. If you are going to contribute, consider cloning the [forked](https://help.github.com/articles/fork-a-repo/) into your own GitHub account project.
- Install [Yarn](https://yarnpkg.com/en/docs/install).
- Install dependencies running `yarn`.
- Build app running `yarn run app:dist`. It's better to not touch a mouse during the process, since it might interfere with the `e2e` tests running at the end of the process.
- Build a package to install running `yarn run electron-builder:dist` command to build Windows/Mac OS X package and one of the following commands to build Linux package:
Expand Down
6 changes: 5 additions & 1 deletion electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ files: [
"!node_modules/sodium-native/prebuilds/linux-arm",
"!node_modules/sodium-native/prebuilds/win32-ia32",
# TODO exclude not needed stuff in "files:" section to reduce app packages size, can save megabytes, so a significant improvement
]
]
compression: maximum
asar: true
asarUnpack:
Expand Down Expand Up @@ -74,6 +74,10 @@ snap:
plugs:
- default
- password-manager-service
# additional plugs to pick up the GTK theme and icons from the system, mouse cursor theme still not fixed
- { "gtk-3-themes": { "interface": "content", "target": "$SNAP/data-dir/themes", "default-provider": "gtk-common-themes:gtk-3-themes" }, }
- { "icon-themes": { "interface": "content", "target": "$SNAP/data-dir/icons", "default-provider": "gtk-common-themes:icon-themes" }, }
- { "sound-themes": { "interface": "content", "target": "$SNAP/data-dir/sounds", "default-provider": "gtk-common-themes:sounds-themes" }, }
environment:
DISABLE_WAYLAND: 1

Expand Down

0 comments on commit 2a65179

Please sign in to comment.