Skip to content

Commit

Permalink
fix(CLI): fixes opds and import cli commands, single-instance-lock, c…
Browse files Browse the repository at this point in the history
…li concurrency (Fixes #2663 PR #2666)
  • Loading branch information
panaC authored Nov 28, 2024
1 parent 7ad382d commit 7c347a9
Show file tree
Hide file tree
Showing 6 changed files with 247 additions and 288 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"_NOT_NEEDED_prepackage:all": "npm run package:build",
"_NOT_NEEDED_package:all": "cross-env CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder -mwl --x64 --publish never",
"cli:help": "electron . --help",
"cli": "cross-env DEBUG=r2:*,readium-desktop:* electron .",
"cli": "cross-env DEBUG=r2:*,readium-desktop:* NODE_ENV=development electron .",
"i18n-sort": "node ./scripts/locales-sort.js",
"i18n-scan": "node ./scripts/translate-scan.js \"src/resources/locales/temp.json\" && sync-i18n --files 'src/resources/locales/*.json' --primary temp --languages en sl bg ca da de el es eu fi fr gl hr it ja ka ko lt nl pt-br pt-pt ru sv zh-cn zh-tw --space \" \" --finalnewline --newkeysempty && rimraf \"src/resources/locales/temp.json\"",
"i18n-check": "sync-i18n --files 'src/resources/locales/*.json' --primary en --languages sl bg ca da de el es eu fi fr gl hr it ja ka ko lt nl pt-br pt-pt ru sv zh-cn zh-tw --space \" \" --finalnewline --newkeysempty",
Expand Down
5 changes: 3 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import {
} from "@r2-shared-js/init-globals";

import { initSessions as initSessionsNoHTTP } from "./main/streamer/streamerNoHttp";
import { start } from "./main/start";
import { createStoreFromDi } from "./main/di";
import { appActions } from "./main/redux/actions";

// import { initSessions as initSessionsHTTP } from "@r2-navigator-js/electron/main/sessions";

Expand Down Expand Up @@ -76,7 +77,7 @@ initSessionsNoHTTP();

if (_VSCODE_LAUNCH === "true") {
// tslint:disable-next-line: no-floating-promises
start();
createStoreFromDi().then((store) => store.dispatch(appActions.initRequest.build()));
} else {
commandLineMainEntry(); // call main fct
}
Expand Down
210 changes: 0 additions & 210 deletions src/main/cli/command.ts

This file was deleted.

Loading

0 comments on commit 7c347a9

Please sign in to comment.