forked from electron-userland/electron-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
and fix notifier text (to not install globally)
- Loading branch information
Showing
16 changed files
with
177 additions
and
35 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,15 @@ | ||
To build Linux or Windows (only if you don't have native dependencies) on any platform: | ||
|
||
1. Run docker container: | ||
```sh | ||
docker run --rm -ti -v ${PWD}:/project -v ${PWD##*/}-node-modules:/project/node_modules -v ~/.electron:/root/.electron electronuserland/electron-builder:wine | ||
``` | ||
2. Type in `npm install && npm prune && npm run dist` | ||
|
||
If you don't have `dist` npm script in your `package.json`, call `./node_modules/.bin/build` directly. | ||
Or to avoid second step, append to first command `/bin/bash -c "npm install && npm prune && npm run dist"` | ||
If you don't need to build Windows, use image `electronuserland/electron-builder:latest` (wine is not installed in this image). | ||
|
||
You can use `/test.sh` to install npm dependencies and run tests. |
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
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
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
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
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,123 @@ | ||
// Type definitions for chalk v0.4.0 | ||
// Project: https://github.com/sindresorhus/chalk | ||
// Definitions by: Diullei Gomes <https://github.com/Diullei>, Bart van der Schoor <https://github.com/Bartvds>, Nico Jansen <https://github.com/nicojs> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
|
||
declare namespace Chalk { | ||
|
||
export var enabled: boolean; | ||
export var supportsColor: boolean; | ||
export var styles: ChalkStyleMap; | ||
|
||
export function stripColor(value: string): any; | ||
export function hasColor(str: string): boolean; | ||
|
||
export interface ChalkChain extends ChalkStyle { | ||
(...text: string[]): string; | ||
} | ||
|
||
export interface ChalkStyleElement { | ||
open: string; | ||
close: string; | ||
} | ||
|
||
// General | ||
export var reset: ChalkChain; | ||
export var bold: ChalkChain; | ||
export var italic: ChalkChain; | ||
export var underline: ChalkChain; | ||
export var inverse: ChalkChain; | ||
export var strikethrough: ChalkChain; | ||
export var dim: ChalkChain; | ||
|
||
// Text colors | ||
export var black: ChalkChain; | ||
export var red: ChalkChain; | ||
export var green: ChalkChain; | ||
export var yellow: ChalkChain; | ||
export var blue: ChalkChain; | ||
export var magenta: ChalkChain; | ||
export var cyan: ChalkChain; | ||
export var white: ChalkChain; | ||
export var gray: ChalkChain; | ||
export var grey: ChalkChain; | ||
|
||
// Background colors | ||
export var bgBlack: ChalkChain; | ||
export var bgRed: ChalkChain; | ||
export var bgGreen: ChalkChain; | ||
export var bgYellow: ChalkChain; | ||
export var bgBlue: ChalkChain; | ||
export var bgMagenta: ChalkChain; | ||
export var bgCyan: ChalkChain; | ||
export var bgWhite: ChalkChain; | ||
|
||
|
||
export interface ChalkStyle { | ||
// General | ||
reset: ChalkChain; | ||
bold: ChalkChain; | ||
italic: ChalkChain; | ||
underline: ChalkChain; | ||
inverse: ChalkChain; | ||
strikethrough: ChalkChain; | ||
|
||
// Text colors | ||
black: ChalkChain; | ||
red: ChalkChain; | ||
green: ChalkChain; | ||
yellow: ChalkChain; | ||
blue: ChalkChain; | ||
magenta: ChalkChain; | ||
cyan: ChalkChain; | ||
white: ChalkChain; | ||
gray: ChalkChain; | ||
grey: ChalkChain; | ||
|
||
// Background colors | ||
bgBlack: ChalkChain; | ||
bgRed: ChalkChain; | ||
bgGreen: ChalkChain; | ||
bgYellow: ChalkChain; | ||
bgBlue: ChalkChain; | ||
bgMagenta: ChalkChain; | ||
bgCyan: ChalkChain; | ||
bgWhite: ChalkChain; | ||
} | ||
|
||
export interface ChalkStyleMap { | ||
// General | ||
reset: ChalkStyleElement; | ||
bold: ChalkStyleElement; | ||
italic: ChalkStyleElement; | ||
underline: ChalkStyleElement; | ||
inverse: ChalkStyleElement; | ||
strikethrough: ChalkStyleElement; | ||
|
||
// Text colors | ||
black: ChalkStyleElement; | ||
red: ChalkStyleElement; | ||
green: ChalkStyleElement; | ||
yellow: ChalkStyleElement; | ||
blue: ChalkStyleElement; | ||
magenta: ChalkStyleElement; | ||
cyan: ChalkStyleElement; | ||
white: ChalkStyleElement; | ||
gray: ChalkStyleElement; | ||
|
||
// Background colors | ||
bgBlack: ChalkStyleElement; | ||
bgRed: ChalkStyleElement; | ||
bgGreen: ChalkStyleElement; | ||
bgYellow: ChalkStyleElement; | ||
bgBlue: ChalkStyleElement; | ||
bgMagenta: ChalkStyleElement; | ||
bgCyan: ChalkStyleElement; | ||
bgWhite: ChalkStyleElement; | ||
} | ||
} | ||
|
||
declare module "chalk" { | ||
export = Chalk; | ||
} | ||
|
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