Skip to content

Commit 6e03c57

Browse files
committed
feat(*): add typescript and react
1 parent 81c654b commit 6e03c57

15 files changed

Lines changed: 668 additions & 59 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
node_modules
33
.idea
44
dist
5+
build

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# samples-electron
22

3-
Code samples for Electron app:
3+
## Start project
4+
5+
1. Start TypeScript compiler in watch mode `npm run tsc`
6+
2. Start the app `npm start`
7+
8+
## Code samples for Electron app
49

510
1. Notifications for Mac/Windows
611
2. Autoupdater (not working on Mac, need good signing certificate)
@@ -16,3 +21,9 @@ Code samples for Electron app:
1621
on Linux: ~/.config/<app name>/log.log
1722
on macOS: ~/Library/Logs/<app name>/log.log
1823
on Windows: %USERPROFILE%\AppData\Roaming\<app name>\log.log
24+
25+
## Signing Certificate
26+
27+
### Mac
28+
29+
- https://electronjs.org/docs/tutorial/code-signing

copy-files-from-to.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"copyFiles": [
3+
{
4+
"from": "./src/images/**/*",
5+
"to": "./build/images/"
6+
},
7+
{
8+
"from": "./src/index.html",
9+
"to": "./build/index.html"
10+
}
11+
]
12+
}

dev-app-update.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
owner: codingbootcampru
2+
repo: samples-electron
3+
provider: github
4+
updaterCacheDirName: samples-electron-updater

0 commit comments

Comments
 (0)