Skip to content

Commit

Permalink
some more minor auto update changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Makisuo committed Feb 7, 2021
1 parent b5f0b35 commit e3c48f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion main/autoUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ const version = app.getVersion()
const platform = os.platform() + '_' + os.arch() // usually returns darwin_64

const updaterFeedURL =
'https://league-utils-release.herokuapp.com/' + platform + '/' + version
'https://league-utils-release.herokuapp.com/update/' +
platform +
'/' +
version

export function appUpdater() {
console.log(updaterFeedURL)
autoUpdater.setFeedURL(updaterFeedURL)

/* Log whats happening
TODO send autoUpdater events to renderer so that we could console log it in developer tools
You could alsoe use nslog or other logging to see what's happening */
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"private": false,
"private": true,
"name": "league-utils",
"description": "League Utils",
"version": "0.2.5",
"version": "0.2.7",
"author": "David Granzin <[email protected]>",
"main": "app/background.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion renderer/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Home = () => {
<Avatar
className={classes.avatar}
src={`https://cdn.communitydragon.org/${
patch || '10.13'
patch || '11.13'
}/profile-icon/${data?.profileIconId || 1}`}
/>
</Box>
Expand Down

0 comments on commit e3c48f5

Please sign in to comment.