f083f0633d
It reloads the BrowserWindow, but that already has HMR since we're connecting to a Next dev server on localhost. What we want is the main process to reload if the files for the main process are changed. All options I've found so far just restart the main app on changes to the main process code. I'm not sure that'll be useful, so not adding them right now (and in any case, this is not a regression, it just wasn't working with electron-reload either). For future reference if I need to revisit this, these are the things I scouted: - https://www.electronforge.io/config/plugins/webpack - https://github.com/sindresorhus/electron-reloader - https://electron-vite.org/guide/hot-reloading.html
55 lines
2.2 KiB
JSON
55 lines
2.2 KiB
JSON
{
|
|
"name": "ente",
|
|
"version": "1.6.63",
|
|
"private": true,
|
|
"description": "Desktop client for Ente Photos",
|
|
"author": "Ente <code@ente.io>",
|
|
"main": "app/main.js",
|
|
"scripts": {
|
|
"build": "yarn build-renderer && yarn build-main",
|
|
"build-main": "tsc && electron-builder",
|
|
"build-main:quick": "tsc && electron-builder --dir --config.compression=store --config.mac.identity=null",
|
|
"build-renderer": "cd ../web && yarn install && yarn build:photos && cd ../desktop && rm -f out && ln -sf ../web/apps/photos/out",
|
|
"build:quick": "yarn build-renderer && yarn build-main:quick",
|
|
"dev": "concurrently --names 'main,rndr,tscw' \"yarn dev-main\" \"yarn dev-renderer\" \"yarn dev-main-watch\"",
|
|
"dev-main": "tsc && electron app/main.js",
|
|
"dev-main-watch": "tsc --watch --preserveWatchOutput",
|
|
"dev-renderer": "cd ../web && yarn install && yarn dev:photos",
|
|
"postinstall": "electron-builder install-app-deps",
|
|
"lint": "yarn prettier --check . && eslint --ext .ts src",
|
|
"lint-fix": "yarn prettier --write . && eslint --fix --ext .ts src"
|
|
},
|
|
"dependencies": {
|
|
"any-shell-escape": "^0.1.1",
|
|
"auto-launch": "^5.0.5",
|
|
"chokidar": "^3.5.3",
|
|
"compare-versions": "^6.1.0",
|
|
"electron-log": "^4.3.5",
|
|
"electron-store": "^8.0.1",
|
|
"electron-updater": "^4.3.8",
|
|
"ffmpeg-static": "^5.1.0",
|
|
"get-folder-size": "^2.0.1",
|
|
"html-entities": "^2.4.0",
|
|
"jpeg-js": "^0.4.4",
|
|
"next-electron-server": "^1",
|
|
"node-stream-zip": "^1.15.0",
|
|
"onnxruntime-node": "^1.16.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/auto-launch": "^5.0.2",
|
|
"@types/ffmpeg-static": "^3.0.1",
|
|
"@types/get-folder-size": "^2.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^7",
|
|
"@typescript-eslint/parser": "^7",
|
|
"concurrently": "^8",
|
|
"electron": "^25.8.4",
|
|
"electron-builder": "^24.6.4",
|
|
"electron-builder-notarize": "^1.2.0",
|
|
"eslint": "^8",
|
|
"prettier": "^3",
|
|
"prettier-plugin-organize-imports": "^3.2",
|
|
"prettier-plugin-packagejson": "^2.4",
|
|
"typescript": "^5"
|
|
},
|
|
"productName": "ente"
|
|
}
|