From 17b73957e9e0ec1bfe3f8d47e14ec4216aefa07c Mon Sep 17 00:00:00 2001 From: alienzhangyw Date: Mon, 7 Feb 2022 16:34:21 +0800 Subject: [PATCH] Upgrade dependencies --- BlockPi/main.js | 2 +- build/release-notes.md | 9 +++------ package.json | 15 +++++++-------- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/BlockPi/main.js b/BlockPi/main.js index 6d8691a..e154049 100644 --- a/BlockPi/main.js +++ b/BlockPi/main.js @@ -28,7 +28,7 @@ function createWindow() { backgroundColor: '#2e2c29', webPreferences: { nodeIntegration: true, - nodeIntegrationInWorker: true + contextIsolation: false, }, icon: nativeImage.createFromPath('BlockPi/src/media/logo_32x32.png') }) diff --git a/build/release-notes.md b/build/release-notes.md index 6dfda25..73f6d0b 100644 --- a/build/release-notes.md +++ b/build/release-notes.md @@ -1,7 +1,4 @@ -# 1.2.0 +# 1.2.1 -Update Blockly core to 4.20201217.0.\ -更新Blockly内核版本到4.20201217.0。 - -New designed logo.\ -重新设计了logo。 +Update Electron and other dependencies.\ +更新Electron和其他依赖。 diff --git a/package.json b/package.json index ba824f2..84e90d2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blockpi", - "version": "1.2.0", + "version": "1.2.1", "description": "A visual programming editor for Raspberry Pi", "main": "BlockPi/main.js", "scripts": { @@ -22,8 +22,8 @@ "url": "https://github.com/alienzhangyw/BlockPi.git" }, "devDependencies": { - "electron": "^11.2.3", - "electron-builder": "^22.9.1", + "electron": "^17.0.0", + "electron-builder": "^22.14.13", "electron-reload": "^1.5.0", "fs": "0.0.1-security", "google-closure-compiler": "^20210202.0.0", @@ -36,13 +36,13 @@ "yargs": "^16.2.0" }, "dependencies": { - "electron-updater": "^4.3.5", + "electron-updater": "^4.6.5", "iconv-lite": "^0.6.2" }, "build": { "appId": "com.github.alienzhangyw.blockpi", "productName": "BlockPi", - "copyright": "Copyright © 2019-2021 ${author}", + "copyright": "Copyright © 2019-2022 ${author}", "directories": { "buildResources": "build", "output": "dist" @@ -73,7 +73,7 @@ }, { "target": "deb", - "arch": "armv7l" + "arch": ["armv7l", "arm64"] } ], "category": "Development" @@ -83,7 +83,7 @@ }, "deb": { "fpm": [ - "--architecture=armhf", + "--architecture=all", "--before-install=build/requirements.sh" ], "depends": [ @@ -91,7 +91,6 @@ "gconf2", "gconf-service", "libnotify4", - "libappindicator1", "libxtst6", "libnss3", "python3-gpiozero",