From 7d3aa3a0d8ddb619a6902e2e5071ae3089096648 Mon Sep 17 00:00:00 2001 From: ocogeclub Date: Thu, 23 Dec 2021 20:03:50 +0900 Subject: [PATCH] [update] main.js package.json --- main.js | 2 +- package-lock.json | 1 + package.json | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index ee03d65..ebe7c28 100644 --- a/main.js +++ b/main.js @@ -13,7 +13,7 @@ function createWindow() { // Create the browser window. win = new BrowserWindow({ /** Icon */ - icon: "./icon.png", + icon: path.join(__dirname, "icon.png"), width: 1280, height: 940, webPreferences: { diff --git a/package-lock.json b/package-lock.json index d86e7f7..e7689ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -49,6 +49,7 @@ }, "local_modules/@ocogeclub/pigpio": { "version": "0.0.1", + "hasInstallScript": true, "license": "MIT", "dependencies": { "bindings": "^1.5.0", diff --git a/package.json b/package.json index 67d46aa..8ab60f0 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "\"大岩産 Code Generator\" は、Google Blockly ライブラリを使用した、Raspberry Pi 上で動作するブロックプログラム開発・実行環境です。", "main": "main.js", "scripts": { + "install": "npm install --legacy-peer-deps", "start": "electron .", "rebuild": "electron-rebuild" }, @@ -23,10 +24,10 @@ "electron-rebuild": "^3.2.5" }, "dependencies": { - "@ocogeclub/pigpio": "file:local_modules/@ocogeclub/pigpio", "@ocogeclub/amg8833": "file:local_modules/@ocogeclub/amg8833", "@ocogeclub/bme280": "file:local_modules/@ocogeclub/bme280", "@ocogeclub/paj7620": "file:local_modules/@ocogeclub/paj7620", + "@ocogeclub/pigpio": "file:local_modules/@ocogeclub/pigpio", "@tensorflow-models/knn-classifier": "^1.2.2", "@tensorflow-models/mobilenet": "^2.1.0", "@tensorflow/tfjs-node": "^3.11.0",