Skip to content

Commit ecfad6b

Browse files
committed
feat: better
1 parent 32447af commit ecfad6b

File tree

19 files changed

+212
-20
lines changed

19 files changed

+212
-20
lines changed

.configs/forge.config.js

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,59 @@
11
const path = require("path");
2+
require("dotenv").config();
23

3-
const appIconsPath = path.join(__dirname, "..", "assets", "appicons", "icons");
4+
const packageAssetsPath = path.join(__dirname, "..", "assets", "package");
45

56
module.exports = {
67
packagerConfig: {
7-
icon: path.join(appIconsPath, "win", "icon.ico"),
8+
icon: path.join(packageAssetsPath, "icons", "win", "icon.ico"),
89
asar: true,
910
},
11+
publishers: [
12+
{
13+
name: "@electron-forge/publisher-github",
14+
config: {
15+
repository: {
16+
owner: "saucesteals",
17+
name: "electron-typescript-react-tailwind-redux",
18+
authToken: process.env.GITHUB_TOKEN,
19+
},
20+
draft: true,
21+
prerelease: true,
22+
},
23+
},
24+
],
1025
makers: [
1126
{
1227
name: "@electron-forge/maker-squirrel",
1328
config: {
1429
// https://js.electronforge.io/maker/squirrel/interfaces/makersquirrelconfig
1530
setupExe: "Windows Setup.exe",
1631
iconUrl:
17-
"https://raw.githubusercontent.com/saucesteals/electron-typescript-react-tailwind-redux/main/assets/appicons/icons/win/icon.ico",
18-
setupIcon: path.join(appIconsPath, "win", "icon.ico"),
32+
"https://raw.githubusercontent.com/saucesteals/electron-typescript-react-tailwind-redux/main/assets/package/icons/win/icon.ico",
33+
setupIcon: path.join(packageAssetsPath, "icons", "win", "icon.ico"),
34+
authors: "saucesteals & fourwadu",
35+
loadingGif: path.join(packageAssetsPath, "loading.gif"),
1936
},
2037
},
2138
{
2239
name: "@electron-forge/maker-dmg",
2340
config: {
2441
// https://js.electronforge.io/maker/dmg/interfaces/makerdmgconfig
25-
icon: path.join(appIconsPath, "mac", "icon.icns"),
42+
icon: path.join(packageAssetsPath, "icons", "mac", "icon.icns"),
2643
},
2744
},
2845
{
2946
name: "@electron-forge/maker-deb",
3047
config: {
3148
// https://js.electronforge.io/maker/deb/interfaces/makerdebconfig
32-
icon: path.join(appIconsPath, "png", "1024x1024.png"),
49+
icon: path.join(packageAssetsPath, "icons", "png", "1024x1024.png"),
3350
},
3451
},
3552
{
3653
name: "@electron-forge/maker-rpm",
3754
config: {
3855
// https://js.electronforge.io/maker/rpm/interfaces/makerrpmconfig
39-
icon: path.join(appIconsPath, "png", "1024x1024.png"),
56+
icon: path.join(packageAssetsPath, "icons", "png", "1024x1024.png"),
4057
},
4158
},
4259
],

README.md

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# electron-typescript-react-webpack-tailwind-redux
22

3-
>An Electron boilerplate featuring Typescript, React, Webpack, TailwindCSS and Redux (featuring [Electron Store](https://github.com/sindresorhus/electron-store) & [Redux Persist](https://github.com/saucesteals/electron-persist-secure)) - ready to use for all frontend applications.
3+
>An Electron boilerplate featuring Typescript, React, Webpack, TailwindCSS and Redux ([Electron Persist Secure](https://github.com/saucesteals/electron-persist-secure) x [Redux Persist](https://github.com/rt2zz/redux-persist)) - ready to use for all frontend applications.
44
55
Configuring an Electron desktop application can be tricky.
66

77
This module creates a secure, modular, and easy to use configuration for best practice React and Electron technologies that you may want in your application!
88

9-
### Install
9+
---
10+
11+
### **Installation**
1012

1113

1214
```sh
@@ -17,23 +19,46 @@ $ cd your-project-name
1719
$ yarn
1820
```
1921

20-
### Starting Development
22+
---
23+
24+
### **Starting Development**
2125

2226
Start the app in the `dev` environment:
2327
```sh
2428
yarn start
2529
```
2630

27-
### Packaging for Production
31+
---
32+
33+
### **Packaging for Production**
2834
To package apps into a local executable:
2935
```sh
3036
yarn make:win
37+
# yarn make:mac
38+
# yarn make:linux
3139
```
3240

33-
### Customizing your application
41+
---
42+
43+
### **Releasing with GitHub**
44+
1. Open your `env.example` file (or `.env` if you have already made one)
45+
2. Set your `GH_TOKEN`
46+
3. Rename the file to `.env` if not already done so
47+
```sh
48+
yarn publish:win
49+
# yarn publish:mac
50+
# yarn publish:linux
51+
```
52+
53+
---
54+
55+
### **Customizing your application**
56+
3457
Customizing features from this boilerplate is extremely easy. You can remove features such as React Router and Redux simply by deleting files associated with them.
3558

36-
### Contributing
59+
---
60+
61+
### **Contributing**
3762
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository.
3863
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
3964

@@ -44,6 +69,8 @@ Contributions are what make the open source community such an amazing place to b
4469
5. Open a Pull Request and leave some comments!
4570

4671

47-
### Maintainers
72+
---
73+
74+
### **Maintainers**
4875
* [Noah (wadu)](https://github.com/fourwadu/)
4976
* [Daniel (sauce)](https://github.com/saucesteals/)

0 commit comments

Comments
 (0)