taurine icon indicating copy to clipboard operation
taurine copied to clipboard

Not working on Windows

Open benjasHu opened this issue 2 years ago • 4 comments

Hi! I'm trying to build the app and it goes all well, but when I open the app, it seems that is not communicating with the server.

I type something in the input, click on Greet button and it does nothing. I've followed all steps carefully Is this repo still working?

Thanks!

benjasHu avatar Jan 11 '23 19:01 benjasHu

Same here, did you find any solutions for this?

Thanks!

saogregl avatar Jan 14 '23 23:01 saogregl

@benjasHu @saogregl Sorry, I didn't test it on Windows. I don't have such a machine, but I assume it's doable. Try passing the targets or t cli option to the pkg executable. You can find it here: https://github.com/Perfect7M/taurine/blob/main/scripts/build-server.js#L44

Please let me know if it's working. I will try to test it on both Windows and Linux - and make a guide how to make it work on that platform.

marcincodes avatar Jan 23 '23 17:01 marcincodes

Hi again, finally I was able to fix it, simply adding https://tauri.localhost to the accepted CORS list.

In /server/index.ts:

server.register(cors, {
	origin: [
		'http://localhost:1420',
		'https://tauri.localhost',
		'tauri://localhost'
	]
})

bsanchez-grupo-active avatar Feb 07 '23 11:02 bsanchez-grupo-active

@bsanchez-grupo-active

This worked in my case. Thank you.

Isso funcionou no meu caso. Obrigado.

Andreoew avatar Feb 21 '24 18:02 Andreoew