Skip to content

Commit

Permalink
v.0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
goo951019 committed Dec 15, 2022
1 parent bdc6cac commit 8c6f0f2
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
GITHUB_ACCESS_KEY=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
GITHUB_ACCESS_KEY=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
REACT_APP_VERSION=$npm_package_version
1 change: 1 addition & 0 deletions logs/dev.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[2022-12-15 16:36:31.386] [info] App Version: 0.1.2
22 changes: 19 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
{
"name": "electron-react-app",
"version": "0.1.1",
"version": "0.1.2",
"private": true,
"description": "Electron React App",
"author": "Jerry Jang",
"build": {
"appId": "com.jerry.electron-react-app",
"productName": "Electron React App",
"publish": [
{
"provider": "github",
"owner": "goo951019",
"repo": "electron-react-app"
"repo": "electron-react-app",
"private": true
}
],
"appId": "com.jerry.electron-react-app"
"win": {
"publish": [
"github"
],
"target": [
{
"target": "nsis",
"arch": [
"x64",
"ia32"
]
}
]
}
},
"main": "public/electron.js",
"homepage": "./",
Expand Down
7 changes: 3 additions & 4 deletions public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function createWindow(){
}

if(!isDev){
autoUpdater.setFeedURL({ provider: 'github', owner: 'goo951019', repo: 'electron-react-app', token: process.env.GITHUB_ACCESS_KEY })
autoUpdater.setFeedURL({ provider: 'github', owner: 'goo951019', repo: 'electron-react-app', private: true, token: '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' })
autoUpdater.checkForUpdates();
}

Expand Down Expand Up @@ -57,11 +57,10 @@ autoUpdater.on("update-available", (_event, releaseNotes, releaseName) => {
message: process.platform === 'win32' ? releaseNotes : releaseName,
detail: 'A new version is being downloaded.'
}
dialog.showMessageBox(dialogOptions, (response) => {

})
dialog.showMessageBox(dialogOptions, (response) => { })
});

autoUpdater.on("update-not-available", () => { log.info("Update not available.");});
autoUpdater.on("download-progress", (progressTrack) => { log.info("Downloading..."+progressTrack); })

autoUpdater.on("update-downloaded", (_event, releaseNotes, releaseName) => {
Expand Down
1 change: 1 addition & 0 deletions src/pages/Page_Landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export default function Page_Landing() {
return (
<div className="container" style={{width: '100wh'}}>
<h1>Electron React Template</h1>
<p>v.{process.env.REACT_APP_VERSION}</p>
</div>
)
}

0 comments on commit 8c6f0f2

Please sign in to comment.