Skip to content

Commit 92099ed

Browse files
committed
renamed npm projects (where -> where-ui)
Fixing broken packaged electron app
1 parent bb70188 commit 92099ed

File tree

5 files changed

+26
-20
lines changed

5 files changed

+26
-20
lines changed

electron/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "where-app",
2+
"name": "where",
33
"version": "0.0.8",
44
"description": "A playground for group self-awareness",
55
"repository": {
@@ -31,6 +31,8 @@
3131
"dist/**/*",
3232
"web/**/*",
3333
"where.dna",
34+
"where.happ",
35+
"binaries/**/*",
3436
"node_modules/**/*",
3537
"package.json"
3638
],
@@ -52,13 +54,13 @@
5254
"@typescript-eslint/eslint-plugin": "^5.10.0",
5355
"@typescript-eslint/parser": "^5.10.0",
5456
"electron": "12.0.6",
55-
"electron-builder": "22.14.13",
57+
"electron-builder": "22.11.7",
5658
"eslint": "^7.25.0",
5759
"eslint-plugin-import": "^2.22.1",
5860
"typescript": "^4.5.4"
5961
},
6062
"dependencies": {
61-
"electron-holochain": "^0.0.32",
63+
"electron-holochain": "^0.0.34",
6264
"electron-prompt": "^1.6.0",
6365
"electron-log": "^4.3.5",
6466
"electron-notarize": "^1.0.0",

electron/src/index.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import initAgent, {
1616
StateSignal,
1717
STATUS_EVENT,
1818
APP_PORT_EVENT,
19-
//ERROR_EVENT,
20-
//HOLOCHAIN_RUNNER_QUIT,
21-
//LAIR_KEYSTORE_QUIT
19+
ERROR_EVENT,
20+
HOLOCHAIN_RUNNER_QUIT,
21+
LAIR_KEYSTORE_QUIT
2222
} from 'electron-holochain'
2323

2424
import {
@@ -282,15 +282,19 @@ async function startMainWindow(splashWindow: BrowserWindow) {
282282
//log('debug', "APP_PORT_EVENT: " + appPort)
283283
g_appPort = appPort
284284
})
285-
statusEmitter.on('error'/* ERROR_EVENT */, (error: Error) => {
286-
log('error', "HOLOCHAIN ERROR_EVENT: " + error)
285+
statusEmitter.on(ERROR_EVENT, (error: Error) => {
286+
const error_msg = "HOLOCHAIN ERROR_EVENT: " + error;
287+
log('error', error_msg)
288+
splashWindow.webContents.send('status', error_msg)
287289
})
288-
statusEmitter.on('holochain_runner_quit' /*HOLOCHAIN_RUNNER_QUIT*/, () => {
290+
statusEmitter.on(HOLOCHAIN_RUNNER_QUIT, () => {
289291
log('debug', "HOLOCHAIN_RUNNER_QUIT event received")
292+
splashWindow.webContents.send('status', "HOLOCHAIN_RUNNER_QUIT event received")
290293
//app.quit()
291294
})
292-
statusEmitter.on('lair_keystore_quit'/*LAIR_KEYSTORE_QUIT*/, (e) => {
295+
statusEmitter.on(LAIR_KEYSTORE_QUIT, (e) => {
293296
log('debug', "LAIR_KEYSTORE_QUIT event received")
297+
splashWindow.webContents.send('status', "LAIR_KEYSTORE_QUIT event received")
294298
//app.quit()
295299
})
296300
}

electron/web/splashscreen.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<div class="splash-content-wrapper">
1313
<div>
1414
<div class="splash-logo">where</div>
15-
<div class="splash-version">version 0.0.7</div>
15+
<div class="splash-version">version 0.0.8</div>
1616
</div>
1717
<div class="splash-loading-message" id="activity">
1818
Setting up Holochain...

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
"network" : "npm run build:happ && concurrently-repeat \"npm run start:agent\"",
1313
"network-playground" : "npm run build:happ && concurrently-repeat \"npm run start:agent:playground\"",
1414
"network-proxied" : "npm run build:happ && concurrently-repeat \"npm run start:agent-proxied\"",
15-
"start:agent-proxied" : "cross-env HC_PORT=$(port) concurrently \"npm run dev:libs\" \"npm run start:happ-proxied\" \"sleep 5 && npm run start -w where\"",
16-
"start:agent" : "cross-env HC_PORT=$(port) concurrently \"npm run dev:libs\" \"npm run start:happ\" \"sleep 5 && npm run start -w where\"",
15+
"start:agent-proxied" : "cross-env HC_PORT=$(port) concurrently \"npm run dev:libs\" \"npm run start:happ-proxied\" \"sleep 5 && npm run start -w where-ui\"",
16+
"start:agent" : "cross-env HC_PORT=$(port) concurrently \"npm run dev:libs\" \"npm run start:happ\" \"sleep 5 && npm run start -w where-ui\"",
1717
"start:agent:playground": "cross-env HC_PORT=$(port) concurrently \"npm run playground\" \"npm run dev:libs\" \"npm run start:happ\" \"sleep 5 && npm run start -w where\"",
1818
"dev:libs" : "npm run build:watch -w @where/elements",
1919
"start-proxied" : "npm run build:happ && npm run build -w @where/elements && cross-env HC_PORT=$(port) concurrently -k \"npm run start:happ-proxied\" \"npm run start -w where\"",
20-
"start-rerun" : "cross-env HC_PORT=8888 concurrently -k \"npm run build:watch -w @where/elements\" \"hc s run 0 -p 8888\" \"npm run start -w where\"",
21-
"prepare" : "npm run build -w @where/elements && npm run build -w where",
20+
"start-rerun" : "cross-env HC_PORT=8888 concurrently -k \"npm run build:watch -w @where/elements\" \"hc s run 0 -p 8888\" \"npm run start -w where-ui\"",
21+
"prepare" : "npm run build -w @where/elements && npm run build -w where-ui",
2222
"test" : "npm run build:happ && npm run build -w @where/elements && npm t -w tests",
23-
"start:happ" : "RUST_LOG=warn hc s generate ./dna/workdir/happ/where.happ --run=$HC_PORT -a where network mdns",
24-
"start:happ-proxied" : "RUST_LOG=warn hc s generate ./dna/workdir/happ/where.happ --run=$HC_PORT -a where network --bootstrap https://bootstrap-staging.holo.host/ quic -p=kitsune-proxy://SYVd4CF3BdJ4DS7KwLLgeU3_DbHoZ34Y-qroZ79DOs8/kitsune-quic/h/165.22.32.11/p/5779/--",
23+
"start:happ" : "RUST_LOG=warn hc s generate ./dna/workdir/happ/where.happ --run=$HC_PORT -a where-ui network mdns",
24+
"start:happ-proxied" : "RUST_LOG=warn hc s generate ./dna/workdir/happ/where.happ --run=$HC_PORT -a where-ui network --bootstrap https://bootstrap-staging.holo.host/ quic -p=kitsune-proxy://SYVd4CF3BdJ4DS7KwLLgeU3_DbHoZ34Y-qroZ79DOs8/kitsune-quic/h/165.22.32.11/p/5779/--",
2525
"package" : "npm run build:happ && npm run build:ui && npm run build:webapp",
26-
"build:ui" : "npm run build -w @where/elements && npm run package -w where",
26+
"build:ui" : "npm run build -w @where/elements && npm run package -w where-ui",
2727
"build:webapp" : "hc web-app pack workdir",
2828
"build:happ" : "npm run build:dna && hc app pack ./dna/workdir/happ",
2929
"build:dna" : "npm run build:zome && hc dna pack ./dna/workdir/dna",
@@ -36,7 +36,7 @@
3636
"ci:ui-install" : "cd ui/lib && npm install --ignore-scripts",
3737
"ci:app-install" : "cd ui/apps/where && npm install --ignore-scripts",
3838
"dist" : "cd electron && npm run tsc && npm run dist",
39-
"electron" : "npm run package && npm run start -w where-app"
39+
"electron" : "npm run package && npm run start -w where"
4040
},
4141
"devDependencies": {
4242
"@holochain-playground/cli": "^0.0.8",

ui/apps/where/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "where",
2+
"name": "where-ui",
33
"version": "0.0.8",
44
"scripts": {
55
"build": "tsc",

0 commit comments

Comments
 (0)