cocktailpeanut преди 1 месец
родител
ревизия
7a1d6672b1
променени са 3 файла, в които са добавени 14 реда и са изтрити 4 реда
  1. 2 0
      full.js
  2. 2 0
      minimal.js
  3. 10 4
      package.json

+ 2 - 0
full.js

@@ -23,6 +23,7 @@ const filter = function (item) {
   return item.browserName === 'Chrome';
 };
 
+const update = new Update()
 const pinokiod = new Pinokiod(config)
 const titleBarOverlay = (colors) => {
   if (is_mac) {
@@ -579,6 +580,7 @@ document.querySelector("form").addEventListener("submit", (e) => {
         }
       }
     })
+    update.run()
     PORT = pinokiod.port
 
     theme = pinokiod.theme

+ 2 - 0
minimal.js

@@ -3,6 +3,7 @@ const path = require('path')
 const Pinokiod = require("pinokiod")
 const config = require('./config')
 const pinokiod = new Pinokiod(config)
+const update = new Update()
 let tray
 app.whenReady().then(async () => {
   await pinokiod.start({
@@ -21,6 +22,7 @@ app.whenReady().then(async () => {
       }
     }
   })
+  update.run()
   if (process.platform === 'darwin') app.dock.hide();
   let icon = nativeImage.createFromPath(path.resolve(process.resourcesPath, "assets/icon_small.png"))
   icon = icon.resize({

+ 10 - 4
package.json

@@ -1,7 +1,7 @@
 {
   "name": "Pinokio",
   "private": true,
-  "version": "3.20.4",
+  "version": "3.20.5",
   "homepage": "https://pinokio.co",
   "description": "pinokio",
   "main": "main.js",
@@ -24,10 +24,15 @@
   "build": {
     "appId": "computer.pinokio",
     "afterPack": "chmod.js",
-		"afterSign": "electron-builder-notarize",
+    "afterSign": "electron-builder-notarize",
     "directories": {
       "output": "dist-${platform}"
     },
+    "publish": [{
+      "provider": "github",
+      "owner": "cocktailpeanutlabs",
+      "repo": "pdeploy"
+    }],
     "asarUnpack": [
       "node_modules/go-get-folder-size/**/*",
       "node_modules/7zip-bin/**/*",
@@ -78,7 +83,7 @@
           ]
         }
       ],
-			"hardenedRuntime": true
+      "hardenedRuntime": true
     },
     "linux": {
       "maintainer": "Cocktail Peanut <cocktailpeanuts@proton.me>",
@@ -121,8 +126,9 @@
   "license": "MIT",
   "dependencies": {
     "electron-store": "^8.1.0",
+    "electron-updater": "^6.6.2",
     "electron-window-state": "^5.0.3",
-    "pinokiod": "^3.20.4"
+    "pinokiod": "^3.20.5"
   },
   "devDependencies": {
     "@electron/rebuild": "3.2.10",