Skip to content

Commit 728ec86

Browse files
committed
Link mac
1 parent f492c2a commit 728ec86

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This is a GUI for running React Native commands. It is built with electron so it
88
[v0.1.1](http://v1.1.1) is out!
99

1010

11-
[<img alt="Mac" src="http://clinsite.com/wp-content/uploads/2017/01/Apple-logo-120x120.png" />](http://google.es)
11+
[<img alt="Mac" src="http://clinsite.com/wp-content/uploads/2017/01/Apple-logo-120x120.png" />](https://drive.google.com/open?id=12GdTnRph5DMrAj5b8Kmntykm0lXbOcT-)
1212
[<img alt="Windows" src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/34/Windows_logo_-_2012_derivative.svg/120px-Windows_logo_-_2012_derivative.svg.png" />](http://google.es)
1313
[<img alt="Linux" src="http://www.linuxscrew.com/wp-content/uploads/2007/11/120px-crystal_128_penguin.png" />](http://google.es)
1414

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"name": "ReactNative",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"scripts": {
55
"start": "electron main.js",
66
"babel": "babel --out-dir dist/ app/",
7-
"build": "bash scripts/build.sh $npm_package_name $npm_package_version"
7+
"build": "bash scripts/build.sh $npm_package_name $npm_package_version",
8+
"build:osx": "bash scripts/build.sh $npm_package_name $npm_package_version darwin",
9+
"build:linux": "bash scripts/build.sh $npm_package_name $npm_package_version linux",
10+
"build:windows": "bash scripts/build.sh $npm_package_name $npm_package_version win32"
811
},
912
"dependencies": {
1013
"babel-polyfill": "^6.26.0",

scripts/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#! /bin/bash
22
APP_NAME="$1"
33
APP_VERSION="$2"
4+
PLATFORM=${3:-all}
45
ELECTRON_VERSION=1.7.0
56

67
electron-packager . $APP_NAME \
78
--electron-version=$ELECTRON_VERSION \
8-
--platform=darwin \
9+
--platform=$PLATFORM \
910
--version=$ELECTRON_VERSION \
1011
--icon=assets/icons/icon \
1112
--out=release/$APP_VERSION \

0 commit comments

Comments
 (0)