Skip to content

Commit

Permalink
Preparations for Release (0.1.0): Added self version info
Browse files Browse the repository at this point in the history
  • Loading branch information
Sofiman committed Jul 18, 2018
1 parent 6269b13 commit 8a802d5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function toSeconds(time){
}

module.exports = {
VERSION: '0.1.0',

WIDTH: 800,
HEIGHT: 340,

Expand Down
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const electron = require('electron');
const {app, BrowserWindow, Menu, ipcMain, shell } = electron;
const config = require('./config');
process.versions.pictureidesktop = config.VERSION;

let win, popup;

Expand Down
4 changes: 4 additions & 0 deletions render/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
<td>Author</td>
<td>SofianeLeCubeur</td>
</tr>
<tr>
<td>PictureInDesktop</td>
<td><script>document.write(process.versions.pictureidesktop)</script></td>
</tr>
<tr>
<td>Electron</td>
<td><script>document.write(process.versions.electron)</script></td>
Expand Down

0 comments on commit 8a802d5

Please sign in to comment.