Skip to content

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

@FlysoftBeta

Description

@FlysoftBeta

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions