-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from hardchor/package-app#25
Package app#25
- Loading branch information
Showing
29 changed files
with
478 additions
and
423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ const config = { | |
scopes: [ | ||
'repo', | ||
], | ||
} | ||
}, | ||
}; | ||
|
||
export default config; |
2 changes: 1 addition & 1 deletion
2
app/main/window/createMainWindow.js → app/main/createMainWindow.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* eslint-disable max-len */ | ||
import os from 'os'; | ||
import { app, autoUpdater } from 'electron'; | ||
import pkg from '../package.json'; | ||
import { | ||
checkingForUpdate, | ||
updateAvailable, | ||
updateDownloaded, | ||
updateError, | ||
updateNotAvailable, | ||
} from '../shared/actions/system'; | ||
|
||
const UPDATE_SERVER_HOST = 'timesheets-app.herokuapp.com'; | ||
|
||
export default function init(store) { | ||
// if (process.env.NODE_ENV !== 'production') { | ||
// return; | ||
// } | ||
|
||
if (os.platform() !== 'darwin') { | ||
return; | ||
} | ||
|
||
// const version = app.getVersion(); | ||
const { version } = pkg; | ||
|
||
autoUpdater.addListener('checking-for-update', () => { | ||
store.dispatch(checkingForUpdate()); | ||
}); | ||
autoUpdater.addListener('update-available', () => { | ||
store.dispatch(updateAvailable()); | ||
}); | ||
autoUpdater.addListener('update-downloaded', (event, releaseNotes, releaseName, releaseDate, updateURL) => { | ||
store.dispatch(updateDownloaded(releaseNotes, releaseName, releaseDate, updateURL)); | ||
}); | ||
autoUpdater.addListener('error', (error) => { | ||
store.dispatch(updateError(error)); | ||
}); | ||
autoUpdater.addListener('update-not-available', () => { | ||
store.dispatch(updateNotAvailable()); | ||
}); | ||
|
||
store.dispatch(checkingForUpdate()); | ||
|
||
autoUpdater.setFeedURL(`https://${UPDATE_SERVER_HOST}/update/${os.platform()}_${os.arch()}/${version}`); | ||
autoUpdater.checkForUpdates(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"name": "Timesheets", | ||
"version": "0.0.5", | ||
"description": "A timesheet keeping app based on electron", | ||
"main": "main/index.js", | ||
"author": "Burkhard Reffeling", | ||
"license": "MIT", | ||
"homepage": "https://github.com/hardchor/timesheets#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://[email protected]/hardchor/timesheets.git" | ||
}, | ||
"devDependencies": { | ||
"redux-devtools": "^3.2.0", | ||
"redux-devtools-dock-monitor": "^1.1.1", | ||
"redux-devtools-log-monitor": "^1.0.11", | ||
"redux-logger": "^2.6.1", | ||
"source-map-support": "^0.4.0" | ||
}, | ||
"dependencies": { | ||
"classnames": "^2.2.5", | ||
"css-modules-require-hook": "^4.0.0", | ||
"dotenv": "^2.0.0", | ||
"electron-debug": "^0.6.0", | ||
"electron-json-storage": "^2.0.0", | ||
"electron-positioner": "^3.0.0", | ||
"lodash": "^4.13.1", | ||
"material-design-lite": "^1.1.3", | ||
"moment": "^2.13.0", | ||
"node-fetch": "^1.5.2", | ||
"parse-link-header": "^0.4.1", | ||
"pify": "^2.3.0", | ||
"postcss": "^5.0.19", | ||
"react": "^15.0.1", | ||
"react-dom": "^15.0.1", | ||
"react-mdl": "^1.5.4", | ||
"react-redux": "^4.4.5", | ||
"react-router": "^2.2.4", | ||
"react-router-redux": "^4.0.2", | ||
"redux": "^3.4.0", | ||
"redux-form": "^5.2.3", | ||
"redux-promise": "^0.5.3", | ||
"redux-thunk": "^2.0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.