#sidecar not finding file

122 messages · Page 1 of 1 (latest)

lost coyote
#

Im trying to have tauri execute an exe file, but i keep on getting path to .exe is not found

#
{
  "build": {
    "beforeDevCommand": "npm run dev",
    "beforeBuildCommand": "npm run build",
    "devPath": "http://localhost:1420",
    "distDir": "../dist",
    "withGlobalTauri": false
  },
  "package": {
    "productName": "OneClickDriverInstaller",
    "version": "1.0.0"
  },
  "tauri": {
    "allowlist": {
      "all": false,
      "shell": {
        "all": false,
        "open": true,
        "sidecar": true,
        "scope": [
          { "name": "drivers", "sidecar": true }
        ]
      }
    },
    "bundle": {
      "active": true,
      "targets": "all",
      "identifier": "com.OneClickDriverInstaller.dev",
      "icon": [
        "icons/32x32.png",
        "icons/128x128.png",
        "icons/128x128@2x.png",
        "icons/icon.icns",
        "icons/icon.ico"
      ],
      "externalBin": [
        "drivers"
      ]

    },
    "security": {
      "csp": null
    },
    "windows": [
      {
        "fullscreen": false,
        "resizable": true,
        "title": "OneClickDriverInstaller",
        "width": 800,
        "height": 600
      }
    ]
  }
}
#

this is my conf file

#

is it possible to get make the entire folder a sidecar?

#
  path matching drivers-x86_64-pc-windows-msvc.exe not found.
#

i did try this with the actual exe

#

and it still says not found

lost coyote
#

sidecar not finding file

dark mountain
#

@lost coyote It's searching for an exe named drivers-x86_64-pc-windows-msvc.exe

#

you cannot sidecar a folder

lost coyote
#

And it was adding the x86 part

dark mountain
#

if u write lik

#

drivers

#

it will add it like drivers-x86_64-pc-windows-msvc.exe for windows

lost coyote
#

Ive added it to the end as well

#

Of the file im trying to get it to path

#

But it just adds another x86 to the end

#

The msvc things

dark mountain
lost coyote
#

I did

dark mountain
dark mountain
#
///conf
        "scope": [
          { "name": "drivers", "sidecar": true }
        ]
lost coyote
#

And the tauri.conf

dark mountain
#

and exe file name

lost coyote
#

Heh

dark mountain
#

Exe file name: drivers-x86_64-pc-windows-msvc.exe

#

Name in tauri.conf.json: drivers

lost coyote
#

Give me a bit, ill test it out with actual files

lost coyote
#

@dark mountain

#

path matching /src-tauri/drivers/crostouchpad.4.1.4-installerx86_64-pc-windows-msvc.exe-x86_64-pc-windows-msvc.exe not found.

#

thats the output^

#

wait hold on

dark mountain
lost coyote
#

this is the file name

#

crostouchpad.4.1.4-installer-x86_64-pc-windows-msvc.exe

dark mountain
lost coyote
#

the entire thing?

#

i took out the -x86

#

since it would just repeat itself

lost coyote
#
{
  "build": {
    "beforeDevCommand": "npm run dev",
    "beforeBuildCommand": "npm run build",
    "devPath": "http://localhost:1420",
    "distDir": "../dist",
    "withGlobalTauri": false
  },
  "package": {
    "productName": "OneClickDriverInstaller",
    "version": "1.0.0"
  },
  "tauri": {
    "allowlist": {
      "all": false,
      "shell": {
        "all": false,
        "open": true,
        "sidecar": true,
        "scope": [
          { "name": "/src-tauri/binaries/crostouchpad.4.1.4-installer", "sidecar": true }
        ]
      }
    },
    "bundle": {
      "active": true,
      "targets": "all",
      "identifier": "com.OneClickDriverInstaller.dev",
      "icon": [
        "icons/32x32.png",
        "icons/128x128.png",
        "icons/128x128@2x.png",
        "icons/icon.icns",
        "icons/icon.ico"
      ],
      "externalBin": [
        "/src-tauri/binaries/crostouchpad.4.1.4-installer"
      ]

    },
    "security": {
      "csp": null
    },
    "windows": [
      {
        "fullscreen": false,
        "resizable": true,
        "title": "OneClickDriverInstaller",
        "width": 800,
        "height": 600
      }
    ]
  }
}
#

this is the new side var

#

or updated file

dark mountain
#

This will fix the issue

#

in tauri.conf.json

lost coyote
#

lets see

#

path matching /src-tauri/binaries/crostouchpad.4.1.4-installer-x86_64-pc-windows-msvc.exe not found.

#
"sidecar": true,
        "scope": [
          { "name": "/src-tauri/binaries/crostouchpad.4.1.4-installer-", "sidecar": true }
        ]
      }
    },
    "bundle": {
      "active": true,
      "targets": "all",
      "identifier": "com.OneClickDriverInstaller.dev",
      "icon": [
        "icons/32x32.png",
        "icons/128x128.png",
        "icons/128x128@2x.png",
        "icons/icon.icns",
        "icons/icon.ico"
      ],
      "externalBin": [
        "/src-tauri/binaries/crostouchpad.4.1.4-installer"
      ]
#

do i have to add the .exe

dark mountain
#

of src-tauri

lost coyote
#

wait

#

tauri-conf-jason is in that

#

nah it doesnt work

dark mountain
lost coyote
#

json

dark mountain
#

@lost coyote are you in linux?

#

You are using /

lost coyote
#

win

dark mountain
#

in tauri.conf.json

lost coyote
#

i have to use backslash?

dark mountain
#
{ "name": "./src-tauri/binaries/crostouchpad.4.1.4-installer-", "sidecar": true }
lost coyote
#

breh

dark mountain
#

aka root/src-tauri/binaries/crostouchpad.4.1.4-xxx

#

not {pwd}/

lost coyote
#

ah

#

its not working

#

i am on windows 11

#

path matching ./src-tauri/binaries/crostouchpad.4.1.4-installer-x86_64-pc-windows-msvc.exe not found.

dark mountain
#
cd src-tauri
./src-tauri/binaries/crostouchpad.4.1.4-installer-x86_64-pc-windows-msvc.exe```
#

does the app launch?

lost coyote
#
operable program or batch file.```
lost coyote
#

cmd

dark mountain
lost coyote
#

it also requests admin permission

#

could that be it?

dark mountain
dark mountain
lost coyote
#

wait i think its building

#

is it because i used cmd?

dark mountain
lost coyote
#

i tried that and it didnt work

dark mountain
#

did you change the tauri.conf.json?

#

to what I said

lost coyote
#

yes

#

its building

dark mountain
lost coyote
#

yup

#

thanks ahq

#

this is so cool

dark mountain
#

You're welcome

lost coyote
#

thanks ahq

#

also

#

while youre here

#

is there a way to make powershell text smoother

#

and not flash

#

while i type

dark mountain
lost coyote
#

yes

dark mountain
#

Settings

#

not much sure

#

this gives an idea though

lost coyote
#

I see

dark mountain
#

@lost coyote Found it

lost coyote
dark mountain
lost coyote
#

i dont see that

#

wait nvm

#

me stpid

dark mountain
#

@lost coyoteUbuntu style suits your needs I think