@@ -6,7 +6,7 @@ This boilerplate currently works on macOS and Windows. If something doesn't
6
6
work, please [ file and issue] ( https://github.com/Devtography/electron-react-typescript-webpack-boilerplate/issues/new ) .
7
7
8
8
## Getting started
9
- ``` bash
9
+ ``` sh
10
10
// execute
11
11
git clone https://github.com/iamWing/electron-react-typescript-base-proj.git
12
12
```
@@ -32,28 +32,34 @@ git clone https://github.com/iamWing/electron-react-typescript-base-proj.git
32
32
```
33
33
34
34
Then install all the ` node_modules ` needed by executing the following command:
35
- ``` bash
35
+ ``` sh
36
36
cd folder-containing-the-cloned-boilerplate
37
- npm run install
37
+ npm install
38
38
```
39
39
40
40
Finally execute the following command to start Webpack in development mode and
41
- watch the changes on source files.
42
- ``` bash
41
+ watch the changes on source files for live rebuild on code changes .
42
+ ``` sh
43
43
npm run dev
44
44
```
45
45
46
+ The ` npm run dev ` command won't start your app and get your app shows on the
47
+ screen. To start your app, execute the following command:
48
+ ``` sh
49
+ npm start
50
+ ```
51
+
46
52
## Building the installer for your Electron app
47
53
The boilerplate is currently configured to package & build the installer of
48
54
your app for macOS & Windows using ` electron-builder ` .
49
55
50
56
For macOS, execute:
51
- ``` bash
57
+ ``` sh
52
58
npm run build:mac
53
59
```
54
60
55
61
For Windows, execute:
56
- ``` bash
62
+ ``` sh
57
63
npm run build:win
58
64
```
59
65
_ ** ` asar ` archiving is disabled by default in Windows build as it can cause
@@ -77,6 +83,7 @@ possible by changing the build scripts in `package.json` as below:
77
83
"scripts" : {
78
84
...
79
85
"build:win" : " electron-builder build --win --ia32" ,
86
+ // Works only on macOS version < 10.15
80
87
"build:mac" : " electron-builder build --mac --ia32"
81
88
},
82
89
```
@@ -85,6 +92,19 @@ Builds for Linux, armv71, and arm64 can also be configured by modifying the
85
92
build scripts in ` package.json ` , but those aren't tested yet. For details,
86
93
please refer to [ documents of ` electron-builder ` ] ( https://www.electron.build/cli ) .
87
94
95
+ ## Known issues
96
+
97
+ - ` dmg ` build action on ` macOS Catalina (10.15) ` fails due to Apple ditches
98
+ support for 32-bit apps from ` 10.15 ` onwards (Don't worry, you are still
99
+ building 64-bit apps, just some dependencies of the builder are still 32-bit).
100
+ Further details retailed to this issue can be found
101
+ [ here] ( https://github.com/electron-userland/electron-builder/issues/3990 ) .
102
+ Application installer built on ` macOS ` is now set to build ` pkg ` file
103
+ instead of ` dmg ` as a workaround in the current version. The issue can be
104
+ fixed by applying a major version upgrade of ` electron-builder ` to ` 21.2.0+ `
105
+ but it hasn't been tested on this boilerplate yet. This issue is planned to
106
+ be addressed alongside with major version upgrades on other dependencies.
107
+
88
108
## Folder structure
89
109
```
90
110
electron-react-typescript-base-proj/
0 commit comments