Giter Site home page Giter Site logo

Comments (13)

FabianLars avatar FabianLars commented on June 20, 2024

I tried this command clang -xc hello.c on a hello world code :

The error is happening after compilation when it tries to create the installer from your app binary. Can you share your tauri.conf.json file? Or at least your productName for now.

from tauri.

ItsCentric avatar ItsCentric commented on June 20, 2024

I am also having this issue with my SvelteKit application, trying to build for windows on Ubuntu:

tauri info:

[Γ£ö] Environment
    - OS: Ubuntu 22.4.0 X64
    Γ£ö webkit2gtk-4.1: 2.44.2
    Γ£ö rsvg2: 2.52.5
    Γ£ö rustc: 1.78.0 (9b00956e5 2024-04-29)
    Γ£ö cargo: 1.78.0 (54d8815d0 2024-03-26)
    Γ£ö rustup: 1.27.1 (54dd3d00f 2024-04-24)
    Γ£ö Rust toolchain: stable-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
    - node: 20.14.0
    - yarn: 1.22.19
    - npm: 10.7.0
    - bun: 1.0.23

[-] Packages
    - tauri [RUST]: 2.0.0-beta.22
    - tauri-build [RUST]: 2.0.0-beta.17
    - wry [RUST]: 0.40.0
    - tao [RUST]: 0.28.0
    - tauri-cli [RUST]: 2.0.0-beta.20
    - @tauri-apps/api [NPM]: 2.0.0-beta.13
    - @tauri-apps/cli [NPM]: 2.0.0-beta.20

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../build
    - devUrl: http://localhost:5173/
    - framework: Svelte
    - bundler: Vite

tauri.conf.json:

{
        "build": {
                "beforeBuildCommand": "bun run build",
                "beforeDevCommand": "bun run dev",
                "frontendDist": "../build",
                "devUrl": "http://localhost:5173"
        },
        "bundle": {
                "active": true,
                "category": "DeveloperTool",
                "copyright": "",
                "targets": "all",
                "externalBin": [],
                "icon": [
                        "icons/32x32.png",
                        "icons/128x128.png",
                        "icons/[email protected]",
                        "icons/icon.icns",
                        "icons/icon.ico"
                ],
                "windows": {
                        "certificateThumbprint": null,
                        "digestAlgorithm": "sha256",
                        "timestampUrl": ""
                },
                "longDescription": "",
                "macOS": {
                        "entitlements": null,
                        "exceptionDomain": "",
                        "frameworks": [],
                        "providerShortName": null,
                        "signingIdentity": null
                },
                "resources": [],
                "shortDescription": "",
                "linux": {
                        "deb": {
                                "depends": []
                        }
                }
        },
        "productName": "Game Chronicle",
        "version": "0.8.0",
        "identifier": "com.gamechronicle.www",
        "plugins": {
                "updater": {
                        "endpoints": ["https://github.com/ItsCentric/game-chronicle/releases"],
                        "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEM3OTUyQjJEMjA5Q0VFMzAKUldRdzdwd2dMU3VWeCswV21RQ1Vkd256TzhCN0l4STJ1M0d3Y1YwYzVYYnR1NVFaekxmS1RocGsK"
                }
        },
        "app": {
                "windows": [
                        {
                                "height": 600,
                                "resizable": true,
                                "title": "Game Chronicle",
                                "width": 800,
                                "minHeight": 600,
                                "minWidth": 800,
                                "label": "main"
                        },
                        {
                                "title": "Game Chronicle Updater",
                                "label": "updater",
                                "url": "/updater",
                                "height": 400,
                                "width": 600,
                                "resizable": false,
                                "decorations": false,
                                "hiddenTitle": true,
                                "center": true,
                                "visible": false
                        }
                ],
                "security": {
                        "csp": null
                }
        }
}

from tauri.

FabianLars avatar FabianLars commented on June 20, 2024

Hmm, i downloaded your repo and can compile it fine 🤔 Can you rerun it with the -vvv flag? Maybe it tells us a bit more.

from tauri.

ItsCentric avatar ItsCentric commented on June 20, 2024

Strange, shortly after running the tauri info command it somehow fixed it even though I didn't change anything

from tauri.

ezawadzki avatar ezawadzki commented on June 20, 2024

Tnaks @FabianLars for your quick reply. Here is my tauri.conf.json :

{
  "build": {
    "beforeBuildCommand": "pnpm run generate",
    "beforeDevCommand": "pnpm run dev",
    "devPath": "http://localhost:3000",
    "distDir": "../.output/public"
  },
  "package": {
    "productName": "MyProject-XR",
    "version": "0.1.0"
  },
  "tauri": {
    "allowlist": {
      "all": false
    },
    "bundle": {
      "active": true,
      "category": "DeveloperTool",
      "copyright": "",
      "deb": {
        "depends": []
      },
      "externalBin": [],
      "icon": [
        "icons/32x32.png",
        "icons/128x128.png",
        "icons/[email protected]",
        "icons/icon.icns",
        "icons/icon.ico"
      ],
      "identifier": "com.MyProject",
      "longDescription": "",
      "macOS": {
        "entitlements": null,
        "exceptionDomain": "",
        "frameworks": [],
        "providerShortName": null,
        "signingIdentity": null
      },
      "resources": [],
      "shortDescription": "",
      "targets": "all",
      "windows": {
        "certificateThumbprint": null,
        "digestAlgorithm": "sha256",
        "timestampUrl": ""
      }
    },
    "security": {
      "csp": null
    },
    "updater": {
      "active": false
    },
    "windows": [
      {
        "fullscreen": false,
        "height": 600,
        "resizable": true,
        "title": "MyProject-XR Virtual",
        "width": 800
      }
    ]
  }
}

from tauri.

ezawadzki avatar ezawadzki commented on June 20, 2024

@FabianLars don't you think it is because of this warning ?
@ItsCentric do you have the same warning ?

[email protected]: clang: warning: unknown argument ignored in clang-cl: '-xc'

from tauri.

FabianLars avatar FabianLars commented on June 20, 2024

No, this warning comes from compiling the rust part but the error where it fails is from the nsis installer bundler which happens way after. Also, this warning is "normal" (as in everyone should start seeing it now).

Can you remove the productName and test again? The productName caused issues in cross compiling before so maybe i missed something...

from tauri.

ezawadzki avatar ezawadzki commented on June 20, 2024

@FabianLars I deleted the key productName in tauri.conf.json. I got the same issue.

from tauri.

ezawadzki avatar ezawadzki commented on June 20, 2024

Whow ! But I have an .exe ! I will test it.

from tauri.

ezawadzki avatar ezawadzki commented on June 20, 2024

IT WORKS !

from tauri.

FabianLars avatar FabianLars commented on June 20, 2024

Well, the exe should have been there the whole time (if you mean the one in target/release/ not in bundle/nsis/).

That's the rust app the cl warning came from. It can be enough for usecase but for many it isn't as it doesn't support all of Tauris features and won't make sure the webview is installed (not a problem on win11).

from tauri.

FabianLars avatar FabianLars commented on June 20, 2024

I'll see if I can reproduce the error on my end today

from tauri.

FabianLars avatar FabianLars commented on June 20, 2024

Ah, i see. The No such file error was already fixed on the 1.x branch and will be part of the next release.

You can use it via cargo install tauri-cli --git https://github.com/tauri-apps/tauri --branch 1.x before that.

from tauri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.