Skip to content

Commit

Permalink
Added latest release build link
Browse files Browse the repository at this point in the history
  • Loading branch information
SlapBot committed Jun 6, 2020
1 parent e90b102 commit 613c39d
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ and it can be copied from system to system seamlessly without any dependencies o
### Desktop App (Main Mode)

- Simply go to [Releases](https://github.com/SlapBot/powir/releases) and pick the latest version to download.
- Download Current Latest Version (Powir v1): [Github](https://github.com/SlapBot/powir/releases/download/v1.0.0/powir.1.0.0.exe) or [GDrive](https://drive.google.com/drive/folders/1ntEjEenEzZXMP8L_nXNoHnIFqNSLpwD9): **Please take a note below before downloading the app**
- Download Current Latest Version (Powir v1): [Github](https://github.com/SlapBot/powir/releases/latest/download/powir.1.0.1.exe) or [GDrive](https://drive.google.com/drive/folders/1ntEjEenEzZXMP8L_nXNoHnIFqNSLpwD9): **Please take a note below before downloading the app**

#### Browser And Windows Defender Warnings

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powir",
"version": "1.0.0",
"version": "1.0.1",
"description": "Windows 10 based tool to monitor and analyze your system's power and battery usage",
"main": "public/electron.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion public/app/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const logger = require('electron-log')

function getBatteryReport() {
return scraper.generateBatteryReport(
'powercfg batteryreport output "public/battery-report.html" duration 5'
'powercfg batteryreport output "battery-report.html" duration 5'
)
.catch(error => log('error', error))
.then(_ => scraper.getHtmlFromFile('battery-report.html'))
Expand Down
2 changes: 1 addition & 1 deletion public/browser.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const scraper = require('./app/scrape')
const axios = require('axios');
const broadcastUrl = 'https://gist.github.com/SlapBot/4b093f88d97522e22205ae9c9d0dea02/raw/update.json'
const broadcastUrl = 'https://gist.github.com/SlapBot/4b093f88d97522e22205ae9c9d0dea02/raw/'


function getBatteryReport() {
Expand Down
5 changes: 3 additions & 2 deletions src/components/Broadcast.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ function Broadcast() {
"text": ""
},
"update": {
'version': config.version,
"status": false,
"version": config.version,
"text": ""
},
})
Expand All @@ -22,7 +23,7 @@ function Broadcast() {
if (data.personal.status) {
setShouldRenderPersonal(true)
}
if (data.update.version !== config.version) {
if (data.update.status && data.update.version !== config.version) {
setShouldRenderUpdate(true)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/utils/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
version: '1.0.0',
version: '1.0.1',
liteMode: process.env.REACT_APP_LITE_MODE === '1'
}
2 changes: 1 addition & 1 deletion src/components/utils/fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function getReport(callbackFunction) {
}

export function getUpdates(callbackFunction) {
const broadcastUrl = config.liteMode ? 'update.json' : 'https://gist.github.com/SlapBot/4b093f88d97522e22205ae9c9d0dea02/raw/update.json'
const broadcastUrl = config.liteMode ? 'update.json' : 'https://gist.github.com/SlapBot/4b093f88d97522e22205ae9c9d0dea02/raw/'
if (config.liteMode) {
return import('./liteMode').then(module => module.getResource(broadcastUrl, callbackFunction))
}
Expand Down

0 comments on commit 613c39d

Please sign in to comment.