Skip to content

Commit 49afc7f

Browse files
committed
bug with updater
1 parent f1c0ab6 commit 49afc7f

File tree

4 files changed

+791
-1675
lines changed

4 files changed

+791
-1675
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.1.2] - 2021-05-31
9+
10+
### Fixed
11+
12+
- Bug with update window when banner is currently open
13+
814
## [1.1.1] - 2021-05-28
915

1016
### Added

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"repository": {
1212
"url": "https://github.com/cupcakearmy/unpixel"
1313
},
14-
"version": "1.1.1",
14+
"version": "1.1.2",
1515
"main": "./dist/back/index.js",
1616
"scripts": {
1717
"start": "electron .",
@@ -62,7 +62,7 @@
6262
"electron": "^12.0.0",
6363
"electron-builder": "^22.10.5",
6464
"npm-run-all": "^4.1.5",
65-
"parcel": "next",
65+
"parcel": "^2.0.0-beta.3.1",
6666
"postcss": "^8.2.10",
6767
"typescript": "^4.2.3"
6868
}

src/back/updater.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import logger from 'electron-log'
44
import { dialog, shell } from 'electron'
55

66
import pkg from '../../package.json'
7+
import Banner from './banner'
78

89
const current = semver.coerce(pkg.version)
910
const url = 'https://api.github.com/repos/cupcakearmy/unpixel/tags'
@@ -25,7 +26,9 @@ export default class Updater {
2526
if (!current) throw new Error('Could not determine current version')
2627
if (semver.lt(current, latest)) {
2728
logger.info('New version available')
29+
Banner.close()
2830
dialog
31+
// @ts-ignore
2932
.showMessageBox(null, {
3033
title: 'Update available',
3134
message: 'A newer version is available, please download.',

0 commit comments

Comments
 (0)