1

I'm writing a Tauri app to scrape a web page and provide a user-friendly UI. I've managed to get it to an MVP but there is a problem. Running yarn tauri build successfully builds the .msi installer. Running the installer also is sucessful and properly installs the app. However upon trying to run it, it does nothing, not even showing an error message or status code.

I attempted to run as administrator and it still didn't work. I thought it might be the headless_chrome crate, but removing it and building the app yielded the same result, so I really don't know what to do.

The executable file within project/src-tauri/target/release works... unless I move it outside of project (I tested it in project/src-tauri/target, project/src-tauri and project and it runs in all of them, but not in project's parent directory.

I'm in windows and the app is for windows machines (as implied by the .msi installer) and below is the output of yarn tauri info:

Environment
  › OS: Windows 10.0.22621 X64
  › Webview2: 113.0.1774.35
  › MSVC:
      - Ferramentas de Build do Visual Studio 2022
  › Node.js: 18.15.0
  › npm: 9.5.0
  › pnpm: Not installed!
  › yarn: 1.22.19
  › rustup: 1.25.2
  › rustc: 1.68.2
  › cargo: 1.68.2
  › Rust toolchain: stable-x86_64-pc-windows-msvc

Packages
  › @tauri-apps/cli [NPM]: 1.2.3
  › @tauri-apps/api [NPM]: 1.2.0
  › tauri [RUST]: 1.3.0,
  › tauri-build [RUST]: 1.3.0,
  › tao [RUST]: 0.16.0,
  › wry [RUST]: 0.24.1,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../dist
  › devPath: http://localhost:1420/
  › framework: SolidJS
  › bundler: Vite

App directory structure
  ├─ .git
  ├─ .vscode
  ├─ dist
  ├─ node_modules
  ├─ public
  ├─ src
  └─ src-tauri
Gustavo Shigueo
  • 399
  • 3
  • 11

0 Answers0