desktopautoupdate
bunsenstraat 10 months ago
parent e9df1694b1
commit 3196cfc2fc
  1. 23
      apps/remixdesktop/package.json
  2. 4
      apps/remixdesktop/src/plugins/appUpdater.ts
  3. 29
      apps/remixdesktop/yarn.lock

@ -1,6 +1,6 @@
{
"name": "remixdesktop",
"version": "0.0.12-Alpha",
"version": "0.0.13-Alpha",
"main": "build/main.js",
"license": "MIT",
"type": "commonjs",
@ -52,6 +52,7 @@
"axios": "^1.6.1",
"byline": "^5.0.0",
"chokidar": "^3.5.3",
"electron-updater": "^6.1.7",
"express": "^4.18.2",
"isomorphic-git": "^1.24.2",
"node-pty": "^0.10.1",
@ -69,13 +70,15 @@
"files": [
"build/**/*"
],
"publish": [{
"provider": "github",
"owner": "bunsenstraat",
"repo": "remix-desktop",
"releaseType": "draft",
"publishAutoUpdate": true
}],
"publish": [
{
"provider": "github",
"owner": "bunsenstraat",
"repo": "remix-desktop",
"releaseType": "draft",
"publishAutoUpdate": true
}
],
"mac": {
"category": "public.app-category.productivity",
"target": [
@ -107,9 +110,7 @@
"icon": "assets/icon.png",
"artifactName": "${productName}.${ext}"
},
"deb": {
},
"deb": {},
"linux": {
"target": [
"deb",

@ -1,6 +1,6 @@
import { ElectronBasePlugin, ElectronBasePluginClient } from "@remixproject/plugin-electron"
import { Profile } from "@remixproject/plugin-utils"
import { autoUpdater } from "electron"
import { autoUpdater } from "electron-updater"
const profile = {
displayName: 'appUpdater',
@ -80,7 +80,7 @@ class AppUpdaterPluginClient extends ElectronBasePluginClient {
console.log('checkForUpdates')
this.call('terminal', 'log', {
type: 'log',
value: 'Checking for updates...',
value: 'Checking for updates...' + autoUpdater.getFeedURL() + autoUpdater.currentVersion,
})
autoUpdater.checkForUpdates()
}

@ -1999,6 +1999,20 @@ electron-publish@24.8.1:
lazy-val "^1.0.5"
mime "^2.5.2"
electron-updater@^6.1.7:
version "6.1.7"
resolved "https://registry.yarnpkg.com/electron-updater/-/electron-updater-6.1.7.tgz#7ebd5fb0dde6372309bdfa8031e8eac3817f9955"
integrity sha512-SNOhYizjkm4ET+Y8ilJyUzcVsFJDtINzVN1TyHnZeMidZEG3YoBebMyXc/J6WSiXdUaOjC7ngekN6rNp6ardHA==
dependencies:
builder-util-runtime "9.2.3"
fs-extra "^10.1.0"
js-yaml "^4.1.0"
lazy-val "^1.0.5"
lodash.escaperegexp "^4.1.2"
lodash.isequal "^4.5.0"
semver "^7.3.8"
tiny-typed-emitter "^2.1.0"
electron@^27.0.0:
version "27.3.0"
resolved "https://registry.yarnpkg.com/electron/-/electron-27.3.0.tgz#5a1f351635bc584f0c8798ab18634bfd2f36af68"
@ -3413,6 +3427,16 @@ lie@~3.3.0:
dependencies:
immediate "~3.0.5"
lodash.escaperegexp@^4.1.2:
version "4.1.2"
resolved "https://registry.yarnpkg.com/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz#64762c48618082518ac3df4ccf5d5886dae20347"
integrity sha512-TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==
lodash.isequal@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0"
integrity sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==
lodash@^4.17.15:
version "4.17.21"
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz"
@ -4835,6 +4859,11 @@ timed-out@^4.0.1:
resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f"
integrity sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA==
tiny-typed-emitter@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/tiny-typed-emitter/-/tiny-typed-emitter-2.1.0.tgz#b3b027fdd389ff81a152c8e847ee2f5be9fad7b5"
integrity sha512-qVtvMxeXbVej0cQWKqVSSAHmKZEHAvxdF8HEUBFWts8h+xEo5m/lEiPakuyZ3BnCBjOD8i24kzNOiOLLgsSxhA==
tmp-promise@^3.0.2:
version "3.0.3"
resolved "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz"

Loading…
Cancel
Save