Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Relative paths in version field of tauri.config.json cannot be processed by tauri android build #6771

Closed
FlysoftBeta opened this issue Apr 22, 2023 · 0 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@FlysoftBeta
Copy link
Contributor

FlysoftBeta commented Apr 22, 2023

Describe the bug

Running yarn tauri android build under the project fails with Error package > version must be a semver string.

Reproduction

  1. Run
yarn create tauri-app --alpha
cd my-app
yarn
yarn tauri android init
  1. Goto src-tauri/tauri.conf.json and set package.version to ../package.json
  2. Run
yarn tauri android build

Expected behavior

Works fine like yarn tauri build.

Platform and versions

[✔] Environment
    - OS: Ubuntu 22.10 X64
    ✔ webkit2gtk-4.1: 2.38.5
    ✔ rsvg2: 2.54.4
    ✔ rustc: 1.68.2 (9eb3afe9e 2023-03-27)
    ✔ Cargo: 1.68.2 (6feb7c9cf 2023-03-26)
    ✔ rustup: 1.25.2 (17db695f1 2023-02-01)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 18.15.0
    - pnpm: 8.1.1
    - yarn: 3.5.0
    - npm: 9.5.0

[-] Packages
    - tauri [RUST]: 2.0.0-alpha.8
    - tauri-build [RUST]: 2.0.0-alpha.4
    - wry [RUST]: 0.27.3
    - tao [RUST]: 0.18.3
    - @tauri-apps/api [NPM]: 2.0.0-alpha.3
    - @tauri-apps/cli [NPM]: 2.0.0-alpha.8

[-] App

Stack trace

No response

Additional context

No response

@FlysoftBeta FlysoftBeta added status: needs triage This issue needs to triage, applied to new issues type: bug labels Apr 22, 2023
lucasfernog added a commit that referenced this issue May 26, 2023
…6771 (#6782)

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
fix(cli): set current dir to tauri dir before reading config, closes #6771
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants