liudonghua123 / tauri-build-action

MIT License
2 stars 1 forks source link

Question: how to build as https://tauri.localhost #13

Open Leon-Luu opened 2 weeks ago

Leon-Luu commented 2 weeks ago

Hi!

The official Hoppscotch build the tauri as https://tauri.localhost. In your example it is build as http://tauri.localhost. How do we configure the tauri app so that https is being serve? As we are using Microsoft callback, http is not allowed.

Thanks if answered

liudonghua123 commented 2 weeks ago

Maybe you can configure this via webviewurl.

Here is a simple example of tauri.config.json.

{
  "tauri": {
    "build": {
      "devPath": "http://localhost:3000", // For development
      "distDir": "../dist" // For production
    },
    "serve": {
      "webviewUrl": "https://tauri.localhost" // The URL to load in the webview
    }
  }
}
Leon-Luu commented 2 weeks ago

Thanks for answering @liudonghua123 , I know there is ongoing thread with same topic on https://github.com/hoppscotch/hoppscotch/discussions/4509 . Is it possible to have the github action to build as https or http base on a new github action params? Not sure if it is better idea or if you could provide example to https://github.com/liudonghua123/hoppscotch-app