Skip to content

Commit bf45f28

Browse files
committed
feat: allow opening a trace file directly from the command line
in dev mode: ```shell ./src-tauri/target/debug/PDL view ./src/demos/demo5.json ``` For some reason AppImage builds are failing in github actions. So we won't yet enable production app build tests. Signed-off-by: Nick Mitchell <[email protected]>
1 parent 99dca4a commit bf45f28

File tree

10 files changed

+403
-28
lines changed

10 files changed

+403
-28
lines changed

.github/workflows/pdl-live-react-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ jobs:
2424
uses: actions/setup-node@v4
2525
with:
2626
node-version: 22
27-
- name: Install dependencies
27+
- name: Install Linux dependencies
28+
run: sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev # for tauri builds in linux
29+
- name: Install NodeJs dependencies
2830
run: npm ci
2931
- name: Install Playwright Browsers
3032
run: npx playwright install --with-deps

pdl-live-react/package-lock.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pdl-live-react/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "tsc && vite build",
99
"build:app": "npm run tauri build",
1010
"lint": "eslint .",
11-
"format": "prettier --write 'tests/**/*.ts' 'src/**/*.{ts,tsx,css}'",
11+
"format": "prettier --write 'tests/**/*.ts' 'src/**/*.{ts,tsx,css}' && (cd src-tauri && cargo fmt)",
1212
"preview": "vite preview",
1313
"tauri": "tauri",
1414
"test:quality": "concurrently -n 'lint,types,formatting' 'npm run lint' 'tsc --build --noEmit' \"prettier --check 'tests/**/*.ts' 'src/**/*.{ts,tsx,css}'\"",
@@ -22,6 +22,8 @@
2222
"@patternfly/react-core": "^6.1.0",
2323
"@patternfly/react-topology": "^6.1.0",
2424
"@tauri-apps/api": "^2",
25+
"@tauri-apps/plugin-cli": "^2.2.0",
26+
"@tauri-apps/plugin-fs": "^2.2.0",
2527
"@tauri-apps/plugin-opener": "^2",
2628
"@tauri-apps/plugin-window-state": "^2.2.1",
2729
"pretty-bytes": "^6.1.1",

0 commit comments

Comments
 (0)