Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
Small build changes, add file associations on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysdz committed Apr 16, 2018
1 parent 1c1f8b8 commit bdfa170
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,16 @@ npm start
### Building binaries
You can build binaries from source code. Binaries will be placed in `dist/` directory

#### Current platform
To build binaries for your current OS run:
```bash
npm run dist
```

#### Linux & Windows
To build binaries for Linux (using remote build service on Windows) and Windows (using Wine on Linux)
```bash
npm run dist
npm run dist-wl
```
***Note:** to build `rpm` on MacOS you need to install rpm using [brew](https://brew.sh/) (`brew install rpm`)*

Expand Down
19 changes: 17 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"start": "npm install && electron ./",
"test": "echo \"Error: no test specified\" && exit 1",
"pack": "build --dir",
"dist": "build -wl --x64 --ia32",
"dist": "build --x64 --ia32",
"dist-wl": "build -wl --x64 --ia32",
"dist-mac": "build -m",
"dist-mwl": "build -mwl --x64 --ia32",
"gh-pub": "build --x64 --ia32 -p always",
Expand All @@ -34,7 +35,21 @@
"build/icon.*"
],
"mac": {
"category": "public.app-category.educational-games"
"category": "public.app-category.educational-games",
"fileAssociations": [
{
"ext": "jpg",
"role": "Viewer"
},
{
"ext": "jpeg",
"role": "Viewer"
},
{
"ext": "png",
"role": "Viewer"
}
]
},
"dmg": {
"contents": [
Expand Down

0 comments on commit bdfa170

Please sign in to comment.