Skip to content

Commit

Permalink
0.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
steveruizok committed Mar 9, 2021
1 parent 80070c4 commit 0e0a9ea
Show file tree
Hide file tree
Showing 8 changed files with 132 additions and 171 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.3.4

- Improves panel styling, updates auto updates.
- Fixes bug with pencil tool.

# 0.3.3

- Fixes bug with short marks.
Expand Down
2 changes: 1 addition & 1 deletion app/background.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/background.js.map

Large diffs are not rendered by default.

22 changes: 8 additions & 14 deletions main/background.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { app, autoUpdater, globalShortcut } from "electron"
import { app, globalShortcut } from "electron"
import serve from "electron-serve"
import { createWindow } from "./helpers"
import updater from "update-electron-app"
import { autoUpdater } from "electron-updater"

const isProd = process.env.NODE_ENV === "production"

Expand All @@ -16,15 +16,8 @@ if (isProd) {

// Auto Updates

const server = "https://update.electronjs.org"
const feed = `${server}/OWNER/REPO/${process.platform}-${
process.arch
}/${app.getVersion()}`

autoUpdater.setFeedURL(feed)

setInterval(() => {
autoUpdater.checkForUpdates()
autoUpdater.checkForUpdatesAndNotify()
}, 10 * 60 * 1000)

autoUpdater.on("update-downloaded", (event, releaseNotes, releaseName) => {
Expand All @@ -43,7 +36,7 @@ if (isProd) {
})

autoUpdater.on("error", (message) => {
console.error("There was a problem updating the application")
console.error("There was a problem updating the application.")
console.error(message)
})

Expand Down Expand Up @@ -83,7 +76,10 @@ if (isProd) {
// Setup global shortcut

app.whenReady().then(() => {
// Register a 'CommandOrControl+X' shortcut listener.
// Check for updates.
autoUpdater.checkForUpdatesAndNotify()

// Register a 'CommandOrControl+Z' shortcut listener.
const ret = globalShortcut.register("CommandOrControl+Option+Z", () => {
app.focus({ steal: true })
mainWindow.webContents.focus()
Expand Down Expand Up @@ -116,5 +112,3 @@ if (isProd) {
app.on("window-all-closed", () => {
app.quit()
})

updater()
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.3.3",
"version": "0.3.4",
"private": true,
"name": "telestrator",
"description": "An over-screen drawing app.",
Expand All @@ -19,10 +19,11 @@
"release:mac": "gh release create v0.3.3 ./dist/*.dmg"
},
"dependencies": {
"@state-designer/react": "^1.5.1",
"@state-designer/react": "^1.5.6",
"cardinal-spline": "^0.0.1",
"electron-serve": "^1.0.0",
"electron-store": "^6.0.1",
"electron-updater": "^4.3.8",
"framer-motion": "^3.3.0",
"lodash-es": "^4.17.20",
"perfect-freehand": "^0.3.0",
Expand Down
Loading

0 comments on commit 0e0a9ea

Please sign in to comment.