Skip to content

Commit

Permalink
Fixed uid-list issues and electron
Browse files Browse the repository at this point in the history
  • Loading branch information
ddd-mtl committed Apr 9, 2022
1 parent f3e810c commit 1d81a91
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
Binary file modified dna/workdir/dna-where/where.dna
Binary file not shown.
Binary file modified dna/workdir/happ-where/where.happ
Binary file not shown.
6 changes: 4 additions & 2 deletions electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"start": "tsc && electron .",
"build": "tsc && npm run dist",
"tsc": "tsc",
"dist": "cp ../dna/workdir/happ-where/where.happ . && electron-builder build",
"dist-linux": "cp ../dna/workdir/happ-where/where.happ . && electron-builder --linux tar.gz",
"dist": "cp ../dna/workdir/happ-where/where.happ ./binaries && electron-builder build",
"dist-linux": "cp ../dna/workdir/happ-where/where.happ ./binaries && electron-builder --linux tar.gz",
"lint": "eslint --ext .ts .",
"clean": "rm -rf node_modules && rm -rf package-lock.json"
},
Expand All @@ -29,6 +29,8 @@
"copyright": "© 2021-2022 Harris-Braun Enterprises, LLC",
"asar": false,
"files": [
"dna/ludotheque_zome_hash.txt",
"dna/where_zome_hash.txt",
"dist/**/*",
"web/**/*",
"binaries/**/*",
Expand Down
5 changes: 4 additions & 1 deletion electron/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,10 @@ async function promptUid(canExitOnCancel: boolean) {
app.quit();
}
} else {
const sessionPath = path.join(g_sessionDataPath, "../")
let sessionPath = g_sessionDataPath;
if (g_uid) {
sessionPath = path.join(g_sessionDataPath, "../")
}
const succeeded = addUidToDisk(r, sessionPath);
//log('info', "promptUid() succeeded = " + succeeded)
if (succeeded) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build" : "bash scripts/build.sh",
"build:ui" : "npm run build -w @where/elements && npm run package -w where-ui && npm run package -w ludotheque-ui",
"build:webapp" : "hc web-app pack workdir",
"build:happ" : "npm run build:dna && hc app pack dna/workdir/happ-where",
"build:happ" : "npm run build:dna && hc app pack dna/workdir/happ-where && npm run hash-zome",
"build:dna" : "npm run build:zome && hc dna pack dna/workdir/dna-where && hc dna pack dna/workdir/dna-ludotheque",
"build:zome" : "CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown",
"clean" : "bash scripts/clean.sh",
Expand Down

0 comments on commit 1d81a91

Please sign in to comment.