renovate[bot] 9c8a1fa742 chore(deps) Pin dependencies (#1195) 4 年之前
..
public 555d667f45 feat(examples) add example using the TS API module (rollup) (#738) 4 年之前
src 555d667f45 feat(examples) add example using the TS API module (rollup) (#738) 4 年之前
src-tauri e02c9419cb refactor(tauri): support for building without environmental variables (#850) 4 年之前
.gitignore 4412b7c438 refactor(tauri): inject script with webview init API (#1186) 4 年之前
README.md 555d667f45 feat(examples) add example using the TS API module (rollup) (#738) 4 年之前
package.json 9c8a1fa742 chore(deps) Pin dependencies (#1195) 4 年之前
rollup.config.js 555d667f45 feat(examples) add example using the TS API module (rollup) (#738) 4 年之前
screenshot.png 555d667f45 feat(examples) add example using the TS API module (rollup) (#738) 4 年之前
yarn.lock 9c8a1fa742 chore(deps) Pin dependencies (#1195) 4 年之前

README.md

API example

This example demonstrates Tauri's API capabilities using the @tauri-apps/api package. It's used as the main validation app, serving as the testbed of our development process. In the future, this app will be used on Tauri's integration tests.

App screenshot

Running the example

  • Install dependencies

    # with yarn
    $ yarn
    # with npm
    $ npm install
    
  • Compile the app

    # with yarn
    $ yarn tauri:build
    # with npm
    $ npm run tauri:build
    # alternatively, if you setup the environment variables, you can build it without Node.js:
    $ cd ../../..
    $ . .scripts/init_env.sh
    $ cd ./tauri/examples/communication
    $ cargo build --features no-server
    
  • Run the app

    $ ./src-tauri/target/release/app