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] Could not build with windows7-compat #8053

Closed
liudonghua123 opened this issue Oct 19, 2023 · 1 comment
Closed

[bug] Could not build with windows7-compat #8053

liudonghua123 opened this issue Oct 19, 2023 · 1 comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@liudonghua123
Copy link

liudonghua123 commented Oct 19, 2023

Describe the bug

I followed the instructions on https://tauri.app/v1/guides/building/windows#supporting-windows-7.

Add "windows7-compat" to tauri dependences in Cargo.toml and configured webviewInstallMode in tauri.config.json.

{
  "tauri": {
    "bundle": {
      "windows": {
        "webviewInstallMode": {
          "type": "embedBootstrapper"
        }
      }
    }
  }
}

Then the build failed with the following errors on linux, windows and macos.

Reproduction

  1. Add "windows7-compat" to tauri dependences in Cargo.toml
  2. configured webviewInstallMode in tauri.config.json
  3. yarn tauri build

Expected behavior

No errors.

Platform and versions

$ tauri info

[✔] Environment
    - OS: Ubuntu 22.04 X64
    ✔ webkit2gtk-4.0: 2.42.1
    ✔ rsvg2: 2.52.5
    ✔ rustc: 1.73.0 (cc66ad468 2023-10-03)
    ✔ Cargo: 1.73.0 (9c4383fb5 2023-08-26)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 18.18.2
    - yarn: 1.22.19
    - npm: 9.8.1

[-] Packages
    - tauri [RUST]: 1.5.1
    - tauri-build [RUST]: 1.5.0
    - wry [RUST]: 0.24.4
    - tao [RUST]: 0.16.4
    - tauri-cli [RUST]: not installed!
    - @tauri-apps/api [NPM]: 1.5.0
    - @tauri-apps/cli [NPM]: 1.5.2

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: ../dist


### Stack trace

```text
$ tauri build -t x86_64-unknown-linux-gnu
       Debug [globset] built glob set; 0 literals, 2 basenames, 0 extensions, 0 prefixes, 0 suffixes, 0 required extensions, 0 regexes
       Debug [globset] glob converted to regex: Glob { glob: "**/npm-debug.log*", re: "(?-u)^(?:/?|.*/)npm\\-debug\\.log[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true }, tokens: Tokens([RecursivePrefix, Literal('n'), Literal('p'), Literal('m'), Literal('-'), Literal('d'), Literal('e'), Literal('b'), Literal('u'), Literal('g'), Literal('.'), Literal('l'), Literal('o'), Literal('g'), ZeroOrMore]) }
       Debug [globset] glob converted to regex: Glob { glob: "**/yarn-debug.log*", re: "(?-u)^(?:/?|.*/)yarn\\-debug\\.log[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true }, tokens: Tokens([RecursivePrefix, Literal('y'), Literal('a'), Literal('r'), Literal('n'), Literal('-'), Literal('d'), Literal('e'), Literal('b'), Literal('u'), Literal('g'), Literal('.'), Literal('l'), Literal('o'), Literal('g'), ZeroOrMore]) }
       Debug [globset] glob converted to regex: Glob { glob: "**/yarn-error.log*", re: "(?-u)^(?:/?|.*/)yarn\\-error\\.log[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true }, tokens: Tokens([RecursivePrefix, Literal('y'), Literal('a'), Literal('r'), Literal('n'), Literal('-'), Literal('e'), Literal('r'), Literal('r'), Literal('o'), Literal('r'), Literal('.'), Literal('l'), Literal('o'), Literal('g'), ZeroOrMore]) }
       Debug [globset] glob converted to regex: Glob { glob: "**/lerna-debug.log*", re: "(?-u)^(?:/?|.*/)lerna\\-debug\\.log[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true }, tokens: Tokens([RecursivePrefix, Literal('l'), Literal('e'), Literal('r'), Literal('n'), Literal('a'), Literal('-'), Literal('d'), Literal('e'), Literal('b'), Literal('u'), Literal('g'), Literal('.'), Literal('l'), Literal('o'), Literal('g'), ZeroOrMore]) }
       Debug [globset] glob converted to regex: Glob { glob: "**/.pnpm-debug.log*", re: "(?-u)^(?:/?|.*/)\\.pnpm\\-debug\\.log[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true }, tokens: Tokens([RecursivePrefix, Literal('.'), Literal('p'), Literal('n'), Literal('p'), Literal('m'), Literal('-'), Literal('d'), Literal('e'), Literal('b'), Literal('u'), Literal('g'), Literal('.'), Literal('l'), Literal('o'), Literal('g'), ZeroOrMore]) }
       Debug [globset] glob converted to regex: Glob { glob: "**/.pnp.*", re: "(?-u)^(?:/?|.*/)\\.pnp\\.[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true }, tokens: Tokens([RecursivePrefix, Literal('.'), Literal('p'), Literal('n'), Literal('p'), Literal('.'), ZeroOrMore]) }
       Debug [globset] built glob set; 6 literals, 37 basenames, 6 extensions, 0 prefixes, 0 suffixes, 3 required extensions, 6 regexes
       Debug [globset] built glob set; 1 literals, 1 basenames, 0 extensions, 0 prefixes, 0 suffixes, 0 required extensions, 0 regexes
       Debug [ignore::walk] ignoring /home/runner/work/hoppscotch-app/hoppscotch-app/src-tauri/.gitignore: Ignore(IgnoreMatch(Hidden))
     Running [tauri_cli] Command `cargo  build --features custom-protocol --release --target x86_64-unknown-linux-gnu`
    Updating crates.io index
error: failed to select a version for `once_cell`.
    ... required by package `win7-notifications v0.4.0`
    ... which satisfies dependency `win7-notifications = "^0.4"` of package `tauri v1.5.1`
    ... which satisfies dependency `tauri = "^1.5.1"` (locked to 1.5.1) of package `app v0.1.0 (/home/runner/work/hoppscotch-app/hoppscotch-app/src-tauri)`
versions that meet the requirements `^1.18` are: 1.18.0

all possible versions conflict with previously selected packages.

  previously selected package `once_cell v1.16.0`
    ... which satisfies dependency `once_cell = "^1.0"` (locked to 1.16.0) of package `gio v0.15.12`
    ... which satisfies dependency `gio = "^0.15.1"` (locked to 0.15.12) of package `gdk v0.15.4`
    ... which satisfies dependency `gdk = "^0.15.1"` (locked to 0.15.4) of package `gtk v0.15.5`
    ... which satisfies dependency `gtk = "^0.15"` (locked to 0.15.5) of package `tauri v1.5.1`
    ... which satisfies dependency `tauri = "^1.5.1"` (locked to 1.5.1) of package `app v0.1.0 (/home/runner/work/hoppscotch-app/hoppscotch-app/src-tauri)`

failed to select a version for `once_cell` which could resolve this conflict
       Error [tauri_cli_node] failed to build app: failed to build app
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.


### Additional context

_No response_
@liudonghua123 liudonghua123 added status: needs triage This issue needs to triage, applied to new issues type: bug labels Oct 19, 2023
@liudonghua123
Copy link
Author

I tried to specify once_cell dependence in Cargo.toml and it works for me.

See also liudonghua123/hoppscotch-app@359f1ec.

FabianLars added a commit to tauri-apps/win7-notifications that referenced this issue Oct 19, 2023
amrbashir pushed a commit to tauri-apps/win7-notifications that referenced this issue Oct 19, 2023
* fix(deps): Use less specific once_cell version

ref tauri-apps/tauri#8053

* Create once-cell-version.md
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

1 participant