-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test new snapcraft file * fixed snap file with picker feature
- Loading branch information
Showing
9 changed files
with
523 additions
and
323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
/node_modules | ||
/out | ||
node_modules/ | ||
out/ | ||
parts/ | ||
stage/ | ||
prime/ | ||
snap/.snapcraft | ||
*.snap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Desktop Entry] | ||
Name=Colorpicker | ||
Exec=colorpicker-app --no-sandbox %U | ||
Terminal=false | ||
Type=Application | ||
Icon=${SNAP}/usr/share/icons/hicolor/256x256/apps/colorpicker-app.png | ||
StartupWMClass=Colorpicker | ||
Comment=Colorpicker | ||
MimeType=x-scheme-handler/colorpicker; | ||
Categories=Graphics;Utility; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
name: colorpicker-app | ||
version: '2.0.4' | ||
base: core18 | ||
summary: A mininal but complete Colorpicker desktop app | ||
description: | | ||
Colorpicker is a desktop tool with Electron to get and save colors code quickly for OSX, Windows and Linux! | ||
Colorpicker's menu come with a lot of cool features : | ||
- Pin : pin Colorpicker to the foreground; | ||
- Picker: open an eyedropper who can pick a color from your desktop; | ||
- Colorsbook: open Colorsbook, a color manager; | ||
- Shading: show three bar of shading — hue bar, natural bar and lightness bar; | ||
- Opacity: toggle Opacity range; | ||
- Clean Vue: unshow menu, ranges and inputs; | ||
- Magic color: show colors from the clipboard; | ||
- Random: show a random color; | ||
- Settings: open the preferences panel. | ||
grade: stable | ||
confinement: strict | ||
|
||
apps: | ||
colorpicker-app: | ||
extensions: [gnome-3-28] | ||
command: opt/Colorpicker/colorpicker-app --no-sandbox | ||
desktop: usr/share/applications/colorpicker-app.desktop | ||
autostart: colorpicker-app.desktop | ||
plugs: | ||
- desktop | ||
- desktop-legacy | ||
- home | ||
- opengl | ||
- x11 | ||
- unity7 | ||
- wayland | ||
- browser-support | ||
- network | ||
- gsettings | ||
- pulseaudio | ||
environment: | ||
TMPDIR: $XDG_RUNTIME_DIR | ||
GSETTINGS_SCHEMA_DIR: $SNAP/usr/share/glib-2.0/schemas | ||
XDG_CURRENT_DESKTOP: Unity | ||
DISABLE_WAYLAND: 1 | ||
|
||
parts: | ||
libxkbcommon-x11-0: | ||
plugin: nil | ||
stage-packages: | ||
- libxkbcommon-x11-0 | ||
prime: | ||
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libxkbcommon*.so* | ||
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libxkbcommon-x11*.so* | ||
|
||
colorpicker-app: | ||
after: [libxkbcommon-x11-0] | ||
plugin: dump | ||
source: ./out/colorpicker_2.0.3_amd64.deb | ||
source-type: deb | ||
override-build: | | ||
snapcraftctl build | ||
sed -i 's|Icon=colorpicker-app|Icon=/usr/share/icons/hicolor/256x256/apps/colorpicker-app.png|' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/colorpicker-app.desktop | ||
prime: | ||
- -opt/Colorpicker/chrome-sandbox | ||
stage-packages: | ||
- libasound2 | ||
- libgconf2-4 | ||
- libnotify4 | ||
- libnspr4 | ||
- libnss3 | ||
- libpcre3 | ||
- libpulse0 | ||
- libxss1 | ||
- libxtst6 | ||
- libpng++-dev | ||
- libx11-dev | ||
- libxtst-dev | ||
- libxt-dev | ||
- libx11-xcb-dev | ||
- libxkbcommon-dev | ||
- libxkbcommon-x11-dev | ||
|
||
cleanup: | ||
after: [colorpicker-app] | ||
plugin: nil | ||
build-snaps: [ gnome-3-28-1804 ] | ||
override-prime: | | ||
set -eux | ||
cd /snap/gnome-3-28-1804/current | ||
find . -type f,l -exec rm -f $SNAPCRAFT_PRIME/{} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,9 @@ const touchbar = require('./touchbar')(__dirname, eventEmitter) | |
const browsers = require('./browsers')(__dirname, storage, {touchbar, eventEmitter}) | ||
const {colorpicker, colorsbook, picker, settings} = browsers | ||
|
||
// @TODO remove when [email protected] | ||
app.allowRendererProcessReuse = true | ||
|
||
require('./events')(storage, browsers, eventEmitter) | ||
|
||
if (process.platform === 'linux') { | ||
|