#Beta.1 tauri.config

19 messages · Page 1 of 1 (latest)

eternal hamlet
#

Hi, I have encountered an error with my tauri config that used alpha version and said to switch to beta version.
From this cofig ```{
"build": {
"beforeBuildCommand": "yarn build",
"beforeDevCommand": "yarn dev",
"devPath": "http://localhost:1420",
"distDir": "../out",
"withGlobalTauri": true
},
"package": {
"productName": "citadel_workspace",
"version": "0.0.0"
},
"plugins": {
"shell": {
"open": true
}
},
"tauri": {
"bundle": {
"active": true,
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"identifier": "citadel.workspace",
"targets": "all"
},
"security": {
"csp": null
},
"windows": [
{
"fullscreen": false,
"height": 600,
"resizable": true,
"title": "Citadel Workspace",
"width": 800
}
]
}
}

```{
  "build": {
    "beforeBuildCommand": "yarn build",
    "beforeDevCommand": "yarn dev"
  },

  "plugins": {
    "shell": {
      "open": true
    }
  }
}

Is this a good behavior? I'm using Nextjs in the app, not spcifing the dist folder would cause a problem in finding the path to the dist files.
Also, it doesn't seem to open the app window automatically.

winged grove
eternal hamlet
#

If so, are they documented?

winged grove
#

Yes they are different

#

Stable has one setup, alpha removed the allowlist, then beta completely changed the structure and introduced capabilities (effectively allowlist v2)

#

I recommend setting up a fresh beta project to see what it looks like

eternal hamlet
#

I see, thank you, I will get back to alpha to see what was the problem there. It worked 2 weeks ago with the same setup lol

#

Also, do you recommend switching to alpha? I mean, is beta the continuation of alpha?

winged grove
# eternal hamlet Also, do you recommend switching to alpha? I mean, is beta the continuation of a...

Seems like there's a misunderstanding here about what alpha and beta means. In version releases in software alpha comes before beta, then you make release candidates, then you release the stable version

So a normal software cycle looks like this:

  • alpha: super early development, every single version usually breaks the universe
  • beta: no more major changes, just feature additions and bug fixes
  • rc: release candidates, nothing new whatsoever, just bug fixing
  • stable: the next major version you actually release that you consider to be sufficiently free of bugs for the general public to consume
#

So in short, no, don't switch back to alpha, it's completely unsupported

eternal hamlet
#

I see, thank you

eternal hamlet
#

tauri-cli 2.0.0-beta.1

#
[✔] Environment
    - OS: Ubuntu 22.04 X64
    ✔ webkit2gtk-4.1: 2.42.5
    ✔ rsvg2: 2.52.5
    ✔ rustc: 1.75.0 (82e1608df 2023-12-21)
    ✔ cargo: 1.75.0 (1d8b05cdd 2023-11-20)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
    - node: 20.11.0
    - yarn: 1.22.21
    - npm: 10.2.4
    - bun: 1.0.22

[-] Packages
    - tauri [RUST]: 2.0.0-beta.2
    - tauri-build [RUST]: 2.0.0-beta.1
    - wry [RUST]: 0.35.2
    - tao [RUST]: 0.25.0
    - tauri-cli [RUST]: 2.0.0-beta.1
    - @tauri-apps/api [NPM]: 2.0.0-alpha.13
    - @tauri-apps/cli [NPM]: 2.0.0-beta.1

[-] App```
eternal hamlet
#

Hi again 🙂
I could make it compile with the current beta.1 config structure but it seems to not open the app automatically.

alu@alu ~/p/citadel_workspace (p2pReg)> cargo tauri dev
     Running BeforeDevCommand (`yarn dev`)
yarn run v1.22.21
$ next dev -p 1420
   ▲ Next.js 14.1.0
   - Local:        http://localhost:1420

        Info Watching /home/alu/proj/citadel_workspace/src-tauri for changes...
   Compiling citadel_workspace v0.0.0 (/home/alu/proj/citadel_workspace/src-tauri)
warning: unused import: `tauri::Manager`
  --> src-tauri/src/lib.rs:11:5
   |
11 | use tauri::Manager;
   |     ^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused variable: `app`
  --> src-tauri/src/lib.rs:20:17
   |
20 |         .setup(|app| {
   |                 ^^^ help: if this is intentional, prefix it with an underscore: `_app`
   |
   = note: `#[warn(unused_variables)]` on by default

 ✓ Ready in 4.3s=====================> ] 529/531: citadel_workspace
warning: `citadel_workspace` (lib) generated 2 warnings (run `cargo fix --lib -p citadel_workspace` to apply 1 suggestion)
    Finished dev [unoptimized + debuginfo] target(s) in 53.15s
#

My current config

{
  "app": {
    "macOSPrivateApi": false,
    "security": {
      "assetProtocol": {
        "enable": false,
        "scope": []
      },
      "dangerousDisableAssetCspModification": false,
      "freezePrototype": false,
      "pattern": {
        "use": "brownfield"
      }
    },
    "windows": [],
    "withGlobalTauri": false
  },
  "build": {
    "beforeBuildCommand": "yarn build",
    "beforeDevCommand": "yarn dev",
    "devUrl": "http://localhost:1420",
    "frontendDist": "../out"
  },
  "bundle": {
    "active": false,
    "android": {
      "minSdkVersion": 24
    },
    "iOS": {},
    "icon": [],
    "linux": {
      "appimage": {
        "bundleMediaFramework": false,
        "files": {}
      },
      "deb": {
        "files": {}
      },
      "rpm": {
        "epoch": 0,
        "files": {},
        "release": "1"
      }
    },
    "macOS": {
      "dmg": {
        "appPosition": {
          "x": 180,
          "y": 170
        },
        "applicationFolderPosition": {
          "x": 480,
          "y": 170
        },
        "windowSize": {
          "height": 400,
          "width": 660
        }
      },
      "files": {},
      "minimumSystemVersion": "10.13"
    },
    "targets": "all",
    "windows": {
      "allowDowngrades": true,
      "certificateThumbprint": null,
      "digestAlgorithm": null,
      "nsis": null,
      "timestampUrl": null,
      "tsp": false,
      "webviewFixedRuntimePath": null,
      "webviewInstallMode": {
        "silent": true,
        "type": "downloadBootstrapper"
      },
      "wix": null
    }
  }
}
runic crescent
#

Looks like you haven't declared any windows in your tauri.conf.json or .setup() hook.